Yes. Thank you. In my model I didn't really specify any variable to be within or between. I think the random slope approach is better for interaction of within and between variables because my z is a latently aggarated variable from a within level variable. If I used the product term I created from manifest group averages then the interaction effect probably won't be in agreement with the latent aggaration framework. I also tried to "trick" a latent interaction by specifying a "xwith" term of one indicator variables at within and between level, but this idea didn't work at all.
T Davis posted on Wednesday, November 03, 2010 - 7:55 am
Drs. Muthen -
This is a very helpful post. I have a few questions.
What would the model command look like? I am not sure how the X*Z interaction is modeled. In the User's Guide ex. 9.1 it appears that the X*Z interaction is represented as xm. Is this correct? So for a random intercept model with two cross-level interactions, the MODEL command would look like:
A cross-level interaction is modeled when you have a random slope as shown in Example 9.2. See Slide 45 of the Topic 7 course handout on the website to see how this plays out. I think this was available in Version 5.1.