Hello, I am trying to do a power analysis for a cross-sectional 3-level mediation model. My X variable is at level 3. My m variable is at level 2. My y variable is at level 1.
In the MONTECARLO command I say:
BETWEEN = (level2) m (level3) x;
and I include m at level 2 and 3 in the MODEL command.
I get this error message: *** ERROR in MODEL command Variables that have been declared as variables for the BETWEEN LEVEL2 level cannot be used on the BETWEEN LEVEL3 level. Variable incorrectly used: M
My understanding is that a level 2 variable should have variance at levels 2 and 3 and so I should be able to use it at both levels. I'm new to MONTECARLO and to multilevel modeling in Mplus so I was wondering if you could help clarify what might be causing a problem here. Thanks!