

Points to plot for crosslevel intera... 

Message/Author 


I am trying to plot crosslevel 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; 


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. 


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 

