I am interested in estimating average marginal effects of a level-1 variable at different values of a level-2 variable in a multilevel random intercept random coefficient logistic regression framework. There is a cross-level interaction between the two variables. Although the interaction is insignificant in the model, I am interested to see whether it is significant for certain values of the level-2 variable. Unfortunately, STATA´s margins command, which works perfectly for this purpose in a single level logistic regression with interactions, does not work with multilevel models and cannot incorporate the random effects in its estimation.

Is the lincom command a way to appropriately see what I am after? If I specify f.e.

lincom xlevel1 + xlevel1_xlevel2*0, or

lincom xlevel1 + xlevel1_xlevel2*10, or

lincom xlevel1 + xlevel1_xlevel2*20, or

after fitting my multilevel model, will I be able to obtain the (non)significance of the interaction effects at different values of the level2 variable?

Or is there any other STATA command that can do what margins, dxdy does in a multilevel framework?

Similar questions and discussions