Hello!
I ran two logit models and tried to contrast the models using the likelihood ratio test to see whether the interaction model improves the basic model. However, I had an error message: “observations differ: 1670 vs. 1659 r(498);” Why does this error occur? Please see below. Any help would be appreciated.
logit sho i.time c.econdis c.blackhisp c.vrate i.srace i.sgender i.wscend i.contact i.injury i.commands, cformat(%9.3f) pformat(%5.3f) sformat(%8.3f) nolog
est store m1
logit sho i.time c.econdis c.blackhisp c.vrate i.srace i.sgender i.wscend i.contact i.injury i.commands i.time#c.econdis i.time#c.blackhisp i.time#c.vrate i.time#i.srace, cformat(%9.3f) pformat(%5.3f) sformat(%8.3f) nolog
est store m1
lrtest m1 m2, stats
observations differ: 1670 vs. 1659
r(498);
I ran two logit models and tried to contrast the models using the likelihood ratio test to see whether the interaction model improves the basic model. However, I had an error message: “observations differ: 1670 vs. 1659 r(498);” Why does this error occur? Please see below. Any help would be appreciated.
logit sho i.time c.econdis c.blackhisp c.vrate i.srace i.sgender i.wscend i.contact i.injury i.commands, cformat(%9.3f) pformat(%5.3f) sformat(%8.3f) nolog
est store m1
logit sho i.time c.econdis c.blackhisp c.vrate i.srace i.sgender i.wscend i.contact i.injury i.commands i.time#c.econdis i.time#c.blackhisp i.time#c.vrate i.time#i.srace, cformat(%9.3f) pformat(%5.3f) sformat(%8.3f) nolog
est store m1
lrtest m1 m2, stats
observations differ: 1670 vs. 1659
r(498);
Comment