Message/Author 

TD posted on Monday, November 19, 2007  7:32 am



Hello  Forgive me if this question is too general. I have used HLM to determine the siginificance of a crosslevel interaction in a multilevel model. However, I would like to compare the fit of the overall path model, to a second nested model. I have decided to use SEM and Mplus to do this. Yet, it is not clear to me if I can generate a crosslevel interaction with a multilevel SEM. I haven't seen this in the literature either. The models and literature by both Muthens has been very helpful, but I hadn't seen anything about this possibility. You are innovators with regard to multilevel SEMs, so I am sure you can offer some information. 


A crosslevel interaction, or a betweenlevel (level 2) variable moderating a within level (level 1) relationship, as shown below as the random slope in y regressed on x: yij = beta0 + beta1j xij + rij beta1j = gamma10 + gamma11 wj + u1j gives the interaction, a product of xij and wj if you insert the beta1j equation in the yij equation. is specified in Mplus as: MODEL: %WITHIN%; beta1  y ON x; %BETWEEN%; beta1 ON w; ! estimates gamma11 The variable y can be observed or latent that is a factor measured by multiple indicators. 

TD posted on Monday, November 19, 2007  9:31 am



Thank you so much! 

Verena Hahn posted on Tuesday, August 07, 2012  6:45 am



Hi, I would like to estimate a crosslevel interaction in which the slope is not randomly varying: yij = beta0 + beta1j xij + rij beta0j = gamma00 + gamma01 wj beta1j = gamma10 + gamma11 wj How can I specify this in Mplus? I thought the following might work. Is this right? MODEL: %WITHIN%; beta1  y ON x; %BETWEEN%; y on w; beta1 ON w; beta1 @0; Thanks! 


That looks correct. 


I just wanted to confirm that the Verena Hahn's post on Tuesday, August 7th, 2012 is still what you would suggest. I have a multilevel model where repeated measures are taken at two time points within persons. I'm only interested in the fixed effect of the within person slope but to also allow a random intercept. I also expect that the fixed slope will be moderated by a level 2 variable. In other words, I'm only interested in examining whether the average within person effect changes as a function of a level 2 variable. As such, I'm interested in a crosslevel interaction where the level 1 slope is not randomly varying. Would you still recommend implementing this in Mplus as: MODEL: %WITHIN%; beta1  y ON x; %BETWEEN%; y on w; beta1 ON w; beta1 @0; 


That seems like a correct setup. I wouldn't say that the slope isn't varying because it does vary as a function of w. I also don't see the need for fixing the residual variance at zero for the slope on between  that says w totally determines the variation in the slope. 


Thank you Dr. Muthen. I see what mean about the slope varying across w. If I omit the residual constraint (i.e., beta1 @0) won't that estimate the random effect for the level 1 slope? I was under the impression that with only two level 1 observations a model with both a random intercept and slope would be underidentified and that the residual constraint is necessary for model identification. Thank you. 


Try freeing this residual variance and see if Mplus tells you about any problems. 


Good morning: I have a quick question. When we are testing crosslevel interactions, do we test the main effects between the two level 1 variables in the hypothesized interactive model? For example: Within s1  Y ON X; YW ON X; Between s1 WITH YB; YB s1 ON Z1 Z2; In the above model, the effect of YW ON X is negative and nonsignificant. Whereas in the main effects model, the effect was positive and significant. I saw some papers report similar effects but argued that lower level effects should not be interpreted in the presence of higher level effects. Is that the way to go? And what the reasoning behind such an effect? Thank you. 


In a model like the following, y ON x1 x2 x1x2, if the interaction is significant, you do not interpret the main effects. That is because they do not behave the same for everyone. There is an interaction. I don't understand your model above in the context of your question. 


Dear Dr Muthen and Muthen, I have specified a crosslevel interaction as follows: %within% S  x on y; %between% S on w; In my output, I get the estimates for ’s on w’, but not for ‘x on y’. I was wondering why this is. Thank you for your help! Aurelie 


x ON y has a random slope not a fixed slope like s ON w. You will get an intercept and residual variance for the random slope in the between results. 


Of course! That makes sense. Thank you so much for your clarification. 

Back to top 