Hello! I have spent a lot of time trying to get my imputation model to work and managed to impute my data now. However I continue running into issues when using the mi estimate: prefix for multilevel logistic analysis.
The code I would like/need to run with mi estimate is:
svy melogit any_ipv || EA_ID:
...and this including many more independent variables and potentially some random slopes.
Setting svy works, as does running simpler models such as: mi estimate: svy: regress any_ipv i.FQ_age_cat i.school_cat
The problem seems to start when including the random effect. Errors I receive are "mi estimate: command not supported" or "xtlogit is not supported by svy with vce(linearized)" even though xtlogit is specified as a command compatible with mi estimate and my data is vce(linearized).
I have seen people here having used code like mi estimate: svy linearized: melogit var1 var2 || cluster:
But this does not work for me and it seems as if stata comes up with a new error message for everything I try. I would highly appreciate any support or advice!
The code I would like/need to run with mi estimate is:
svy melogit any_ipv || EA_ID:
...and this including many more independent variables and potentially some random slopes.
Setting svy works, as does running simpler models such as: mi estimate: svy: regress any_ipv i.FQ_age_cat i.school_cat
The problem seems to start when including the random effect. Errors I receive are "mi estimate: command not supported" or "xtlogit is not supported by svy with vce(linearized)" even though xtlogit is specified as a command compatible with mi estimate and my data is vce(linearized).
I have seen people here having used code like mi estimate: svy linearized: melogit var1 var2 || cluster:
But this does not work for me and it seems as if stata comes up with a new error message for everything I try. I would highly appreciate any support or advice!
Comment