I am using xtmelogit in Stata 15.1 to analyze a dataset that is nested in schools. I used the code below to compute the odds of boarding at school (w2stbrd).
Code:
xtmelogit w2stbrd w2stses2 w2pexpect w2commustr w2stpqh w2strru || schids: ,or var
The reviewer of my paper suggested me to use margins instead of odds ratio. However, when I use the code:
Code:
margins, dydx(*) atmeans
I can only get the coefficients of the predictors rather than margins. How can I compute margins for the multilevel logistic regression? May I use to the code below to get the right answer?
Code:
margins, dydx(*) predict(mu fixed)
Thank you!