Help with error PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
Message/Author
 Nate Williams posted on Wednesday, December 19, 2018 - 10:06 am
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!
 Bengt O. Muthen posted on Wednesday, December 19, 2018 - 4:34 pm
Page 634 in the UG describes this. In your case, you would say:

Between = m (level3) x;

With no qualifier preceding "m", it can vary on both between levels whereas "x" varies on only level 3.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: