Hello, I am running a multinomial model and want to check what % of the entire model was correctly predicted.
I want to use a command similar to estat classification however this type of command does not work on the multinomial model.
logit $ylist $xlist
estat classification
output reads: correctly classified x% etc.
mlogit $ylist $xlist
estat classification
output reads: invalid subcommand classification
I have tried:
* Multinomial logit marginal effects*
margins, dydx(*) atmeans predict(pr outcome(0))
margins, dydx(*) atmeans predict(pr outcome(1))
margins, dydx(*) atmeans predict(pr outcome(2))
* Multinomial logit predicted probabilities
predict pmlogit0 pmlogit1 pmlogit2, pr
summarize pmlogit0 pmlogit1 pmlogit2
tabulate $ylist
Output:
pmlogit0 = mean = 0.50
pmlogit1 = 0.20
pmlogit2 = 0.298
My original results where
0 = 49.81 % selected this
1 =19.88 % selected this
2 = 30.31 % selected this
However I want to run to see the overall fit of the model.
Would I be correct to say that the % correctly predicted is 98%?
0.5+0.2+0.298 =0998
49.81+19.88+30.31=100 (100-99.8=0.2) = ( 100% - 2% =98)? : I suspect this is not correct, but thought I would check.
I want to use a command similar to estat classification however this type of command does not work on the multinomial model.
logit $ylist $xlist
estat classification
output reads: correctly classified x% etc.
mlogit $ylist $xlist
estat classification
output reads: invalid subcommand classification
I have tried:
* Multinomial logit marginal effects*
margins, dydx(*) atmeans predict(pr outcome(0))
margins, dydx(*) atmeans predict(pr outcome(1))
margins, dydx(*) atmeans predict(pr outcome(2))
* Multinomial logit predicted probabilities
predict pmlogit0 pmlogit1 pmlogit2, pr
summarize pmlogit0 pmlogit1 pmlogit2
tabulate $ylist
Output:
pmlogit0 = mean = 0.50
pmlogit1 = 0.20
pmlogit2 = 0.298
My original results where
0 = 49.81 % selected this
1 =19.88 % selected this
2 = 30.31 % selected this
However I want to run to see the overall fit of the model.
Would I be correct to say that the % correctly predicted is 98%?
0.5+0.2+0.298 =0998
49.81+19.88+30.31=100 (100-99.8=0.2) = ( 100% - 2% =98)? : I suspect this is not correct, but thought I would check.
Comment