Hi Periklis,

In general, the $yhat accessor contains the predicted values of the dependent variable from the last model estimated. As Sven mentioned, for logit & probit these are estimated probabilities. 

Could you provide more context for the error you’re getting?

I hope the roc package is useful for you; just let me know if you have any questions about it.

Peter

Sent from my iPad

On Apr 7, 2019, at 3:40 PM, Periklis Gogas <perrygogas@gmail.com> wrote:

I get this error

? FF = $yhat
The statistic you requested is not available


On Sun, Apr 7, 2019 at 10:28 PM Periklis Gogas <perrygogas@gmail.com> wrote:
Thank you Sven,

What does the $yhat mean actually?


On Sun, Apr 7, 2019 at 8:14 PM Sven Schreiber <svetosch@gmx.net> wrote:
Am 07.04.2019 um 17:17 schrieb Periklis Gogas:
> Thanks a lot! I will try that!

> On Sun, Apr 7, 2019 at 4:19 PM Allin Cottrell <cottrell@wfu.edu
> <mailto:cottrell@wfu.edu>> wrote:
>
>     On Sun, 7 Apr 2019, Periklis Gogas wrote:
>
>      > Hello all!
>      >
>      > Can we set the threshold to alternative values than 0.50 in Logit
>     models?
>      > If not, it would have been a nice addition if it is easy.
>      > One step (or many more complex) would be to produce results for
>     i.e. 10
>      > alternative levels and also the corresponding ROC curve.
>
>     Try Peter Summers' "roc" function package. If you're unfamiliar with
>     such packages see /Help/Packages.

Maybe this is redundant, but let me just add that the $yhat accessor
after logit contains the predicted probability, not a binary 0-1
outcome. So a user may map these probabilities to 0-1 with any threshold
she chooses.

(For example like: series y01 = ($yhat > 0.3))

cheers
sven

_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users
_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
https://linkprotect.cudasvc.com/url?a=http%3a%2f%2flists.wfu.edu%2fmailman%2flistinfo%2fgretl-users&c=E,1,RYwVpoj_WayPfE0Ssfayi_YVUTP08cqnLlW2s3fQl8-jItG-8hlc-sN8CMvoWLHyzziBdVKBrzJKkDpU3c4AJsNdFbwi9PdrkNkLUVS7Ig,,&typo=1