Plotting cross-level interaction PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
Message/Author
 Tino Nsenene posted on Thursday, August 25, 2016 - 4:34 am
Hello,

I’d like to plot a cross-level interaction following ex9.2b in the user’s guide.

Deviating from ex9.2b my x-variable is dichotomous (coded ‘0’ & ‘1’).

I’d like to plot the effect of w (between-variable, continuous) on s (random slope of x) for two different categories of x.

How should I adjust the syntax, given that loop represents variation in x, but there are only two categories?

Thanks for replying!
 Bengt O. Muthen posted on Thursday, August 25, 2016 - 6:17 pm
s ON w is a between-level relationship. but x in ex9.2b is a within-level variable so it can't moderate this relationship. Is your binary x a between-level variable?
 Miranda Sentse posted on Monday, December 17, 2018 - 4:55 am
Hello
Is it possible to use example 9.2 to plot a crosslevel interaction when it is a multilevel logistic regression model? I am not sure how to interpret the effects because they are log odds.
Thanks,
Miranda
 Bengt O. Muthen posted on Monday, December 17, 2018 - 4:40 pm
For a plot example, see

http://www.statmodel.com/download/Cross-level%20effect%20plotted%20by%20LOOP.pdf

If you think it is simpler to understand, you can do this plot for odds instead of logodds. You just have to express the odds in Model Constraint.
 Miranda Sentse posted on Wednesday, December 19, 2018 - 6:58 am
Thank you for the link. Do I understand it correctly that this input will plot the simple slopes on the y axis, that is, the effect of Y ON X, for different values of the moderator (x axis)?

Is it possible to plot actual data points, based on the simple slopes. Thus, plotting the relation between x (on x axis) and outcome y (y axis) for different values of moderator (say, -1SD and +1SD shown as two separate lines)? If so, how would I set this up in Mplus language?
 Bengt O. Muthen posted on Wednesday, December 19, 2018 - 4:26 pm
Yes, using the LOOP and PLOT options in Model Constraints, the PLOT option can have more than one argument so that more than one thing is plotted in the graph for the same x-axis. See for example this script from our RMA book:

http://www.statmodel.com/mplusbook/chap1/ex1.8_Part3.html
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: