
Message/Author 

Jaimee posted on Tuesday, May 27, 2014  4:01 pm



I am trying to figure out how to plot an interaction effect between 2 level 2 variables in a MLM. I am having a bit of trouble as I am getting confused with the syntax. Here is what I have USEVARIABLES clus Y X C D M N O MxN; CLUSTER = clus; WITHIN = C D; BETWEEN = M N O MxN; DEFINE: MxN = M*N; CENTER M (GRANDMEAN); CENTER N (GRANDMEAN); CENTER O (GRANDMEAN); ANALYSIS: TYPE = TWOLEVEL; MODEL: %within% Y on C D; %BETWEEN% Y on M (beta1) N (beta2) O MxN; MODEL CONSTRAINT: PLOT(interaction); LOOP(moderate, 5, 28, 1); Y = beta1+beta2* moderate; PLOT: TYPE = PLOT2; The model constraint and naming of the pathways is where I am confused. I need a plot with Y on the Y axis, N as the moderator and M on the X axis. Any help would be very much appreciated. Thanks very much. 


Take a look at how it is done for UG ex 3.18 as shown on our Mediation page: http://www.statmodel.com/Mediation.shtml Just translate that to your Betweenlevel statements. 

Back to top 

