Hi everyone. I am new here.
I am doing a survey multilevel mixed effects logistic regression model. I have 4 models. The null model, a model with individual level variables, a model with community level variables and a model with both the individual and community level variables.
I already have my models, however, I am trying to find the MOR of the following model using the following commands:
* Model 2 (Individial level variables with p-values<0.2)
svy: melogit n_d ib2.marital_status i.mat_educ i.wealth_index ib2.birthweight ib2.birthtype i.b_order ib3.anc_timing ib2.PNC_attendant || v001:
estimates store model2
* Median odds-ratio (MOR)
nlcom exp(sqrt(2*_b[var(_cons[v001]):_cons])*invnormal(0.75)), cformat(%9.2f)
This is giving me the following error:
"var(_cons[v001]) not found"
Can someone please help me?
I am using stata 16.
Thanks
I am doing a survey multilevel mixed effects logistic regression model. I have 4 models. The null model, a model with individual level variables, a model with community level variables and a model with both the individual and community level variables.
I already have my models, however, I am trying to find the MOR of the following model using the following commands:
* Model 2 (Individial level variables with p-values<0.2)
svy: melogit n_d ib2.marital_status i.mat_educ i.wealth_index ib2.birthweight ib2.birthtype i.b_order ib3.anc_timing ib2.PNC_attendant || v001:
estimates store model2
* Median odds-ratio (MOR)
nlcom exp(sqrt(2*_b[var(_cons[v001]):_cons])*invnormal(0.75)), cformat(%9.2f)
This is giving me the following error:
"var(_cons[v001]) not found"
Can someone please help me?
I am using stata 16.
Thanks
Comment