On Fri, 19 Sep 2014, Artur Bala wrote:
Dear all,
Does anyone know how the threshold value for the predicted probalities in a
logit/probit estimation is being calculated in gretl?
I assume that by "threshold" you mean "the value of P(x'b) at which we
shwitch from predicting a 0 to predicting a 1". I haven't looked at the
source code, but I'm pretty sure it's 0.5. Why should it be anything else?
Try this:
<hansl>
open mroz87 --quiet
logit LFP const WA WE KL6
series pred = $yhat>0.5
xtab LFP pred
</hansl>
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------