Points to plot for cross-level intera... PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
Message/Author
 Haesang Park posted on Sunday, September 06, 2020 - 4:06 pm
I am trying to plot cross-level interaction of a random slope model. I tried the following syntax to plot the region of significance, but am having difficulties in plotting traditional interaction plot based on Aiken and West (1991), which display the slopes based on conditions (i.e. +-1SD).

Could you please inform how to plot the interaction?

Model:
%within%
s1| y on x;

%between%
s1 ON m(b);
[s2](a);

y with sl;

MODEL CONSTRAINT:
PLOT(crosslvl);
LOOP (mod, -2, 2, 0.01);
crosslvl= a+b*mod;

Plot:
Type=plot2;
 Bengt O. Muthen posted on Monday, September 07, 2020 - 3:53 pm
You can use

MODEL CONSTRAINT:
new(crosslo crosshi);
crosslo= a+b*(-1);
crosshi= a+b*(+1);

assuming that your m variable has SD=1 and mean=0.
 Haesang Park posted on Wednesday, September 09, 2020 - 12:48 pm
Thank you for your answers. In fact, I do have the model constraints that you suggested in the model to acquire the slopes per condition (+- SD).

However I am still struggling getting the points to plot interaction plot. What would be syntax to create gh5 file of interaction plots?

Would the syntax look like the following? I believe some modification should be made on PLOT(...) part...

MODEL CONSTRAINT:
new(crosslo crosshi);
crosslo= a+b*(-1);
crosshi= a+b*(+1);

PLOT(crosslvl);
LOOP (mod, -2, 2, 0.01);
crosslvl= a+b*mod;

Plot:
Type=plot2;

Thanks.
 Bengt O. Muthen posted on Wednesday, September 09, 2020 - 3:28 pm
To get the interaction plot with CIs, you should use

MODEL CONSTRAINT:
PLOT(crosslvl);
LOOP (mod, -2, 2, 0.01);
crosslvl= a+b*mod;
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: