I'm using -mi estimate- to estimate a mixed effects logit model using -melogit- (with the -cmdok- option); I'm getting an error I have not seen before, and for which I can find no mention anywhere online or in this forum:
I assume 'invalid base specification' refers to a factor variable - there are several in the model, but I am not specifying the bases, just using defaults.
It gets stranger. My code looks like this:
There's some -display- commands in the loop, nothing else; it runs fine the first 8 times, when it gets to t=9, it exits with the above error. However, if I then type
it runs fine. What gives?
Code:
invalid base specification an error occurred when mi estimate executed melogit on m=1 no results will be saved r(198); r(198);
It gets stranger. My code looks like this:
Code:
forv t=1/10 { mi estimate, cmdok : melogit depvar i.(xvar_*) xcont if inlist(subgroup,`t') || id_cluster: }
Code:
. mi estimate, cmdok : melogit death i.child i.(xvar_*) PS if inlist(subgroup,9) || id_cluster:
Comment