How to use predict after a multinomial model
Posted: Tue Sep 24, 2024 8:20 am
Hi
I use runmlwin and have run a multinomial model, and wish to use predict. My model is as follows:
runmlwin iscore cons hybridnum _Itempcat* hybridtempint1-hybridtempint5 rain temprainint1-temprainint5, ////
> level3(id_farm: cons) ////
> level2(flock_id: cons) ////
> level1(idvar) ////
> discrete(dist(multinomial) link(mlogit) denom(cons) basecategory(0)) ////
> nopause igls maxiterations(50)
I have tried the following commands, but they all returned errors as follows:
. predict y,xb outcome(=1)
equation =1 not found
r(303); t=0.01 9:09:01
. predict y,xb
variable cons_1 not found
. predict y,xb outcome(1)
equation 1 not found
r(303); t=0.00 9:18:08
. predict y
variable cons_1 not found
r(111); t=0.00 9:18:29
Any suggestions on how to use predict after a multinomial model?
I use runmlwin and have run a multinomial model, and wish to use predict. My model is as follows:
runmlwin iscore cons hybridnum _Itempcat* hybridtempint1-hybridtempint5 rain temprainint1-temprainint5, ////
> level3(id_farm: cons) ////
> level2(flock_id: cons) ////
> level1(idvar) ////
> discrete(dist(multinomial) link(mlogit) denom(cons) basecategory(0)) ////
> nopause igls maxiterations(50)
I have tried the following commands, but they all returned errors as follows:
. predict y,xb outcome(=1)
equation =1 not found
r(303); t=0.01 9:09:01
. predict y,xb
variable cons_1 not found
. predict y,xb outcome(1)
equation 1 not found
r(303); t=0.00 9:18:08
. predict y
variable cons_1 not found
r(111); t=0.00 9:18:29
Any suggestions on how to use predict after a multinomial model?