Dear Stata experts,
I want to evaluate the fit of two different models, a linear probability model and a complementary log log.
Unfortunately, estat classification does not support these two specifications.
However, since we can obtain predictions I thougt about manually getting a classification table.
As an empiric rookie, I am now stuck with this simplistic code (using the default cutoff 0.5).
That way, I seem to get the "Correctly classified" at least. But still, I'd highly appreciate any help for a superior approach.
Thanks a lot!
Jo
I want to evaluate the fit of two different models, a linear probability model and a complementary log log.
Unfortunately, estat classification does not support these two specifications.
However, since we can obtain predictions I thougt about manually getting a classification table.
As an empiric rookie, I am now stuck with this simplistic code (using the default cutoff 0.5).
Code:
predict phatLPM gen correct=0 replace correct=1 if phatLPM>=0.5 & EVENT==1 replace correct=1 if phatLPM<0.5 & EVENT==0 tab correct
That way, I seem to get the "Correctly classified" at least. But still, I'd highly appreciate any help for a superior approach.
Thanks a lot!
Jo
Comment