Multilevel path analysis PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
Message/Author
 radanielina-hita marie louise posted on Wednesday, July 25, 2012 - 4:27 am
Hi,

I am new Mplus license user. I am doing a multilevel path analysis. Children from 100 schools are assessed on a number of variables. I have two continuous dependent variables, four IVs, and three covariates. I always get the following error message:

ERROR
One or more between-level variables have variation within a cluster for
one or more clusters. Check your data and format statement.

Here's the code that I used

VARIABLE:
Names are Grade Age Sex Fruit_intake vegetables food_ad know_healthy school_goodcook school weight;

usevariables are Fruit_intake vegetables food_ad know_healthy school_goodcook;
Within = food_ad know_healthy school_goodcook;
Between = food_ad know_healthy school_goodcook;

Cluster is school;
Weight is weight;

ANALYSIS:
Type = Twolevel;
Estimator is WLSM;
Iterations = 10000;
H1iterations = 10000;

Model:
%BETWEEN%
Fruit on food_ad know_healthy school_goodcook;

%WITHIN%
Fruit on food_ad know_healthy school_goodcook;

OUTPUT: SAMPSTAT;
 Linda K. Muthen posted on Wednesday, July 25, 2012 - 6:00 am
The message is related to your data. Any variable on the BETWEEN list must have the same value for members of a cluster. Your data do not follow this rule. If you can't see the problem, send your output, data, and license number to support@statmodel.com.
 radanielina-hita marie louise posted on Tuesday, August 28, 2012 - 11:31 am
Hi,

I am running a multilevel regression. My DV is continuous. I have a set of within level variables (exposure to media, etc.) and SES as the between level predictor (1= underprivileged, 2= privileged). I want to obtain the interaction effect of SES and my within level predictors. Is this the correct command (int | ses XWITH media).

Thanks a lot,
Marie

%BETWEEN%
sodaR on ses;
sodaR with slope;

%WITHIN%
SLOPE | sodaR on Foutlet;
SodaR on eTV ePC;

int | ses XWITH Foutlet;

ANALYSIS:
Type = Twolevel random;
Estimator is MLR;
Iterations = 10000;
H1iterations = 10000;
 Linda K. Muthen posted on Tuesday, August 28, 2012 - 11:35 am
The random slope model gives you the cross-level interaction. You would not use XWITH. See Slide 45 of the Topic 7 course handout on the website to see how this works. See also Example 9.2.
 Byungbae Kim posted on Thursday, January 09, 2014 - 10:54 am
Hi. I am running a two level path model (2-1-1 model). I have two level-2 measures, two mediators and one outcome. This model is as follows;

%within%
dv m1 m2;
dv on m1 m2;
m1 with m2;

%between%
x1 x2;
m1 on x1 x2;
m2 on x1 x2;
x1 with x2;

This model worked fine. Now I want to add individual level control variables (ie. age and gender) both to the within and between levels. Do you think the below codes are correct? My particular concern is whether I can specify level 1 variables, such as age and gender, at the between level. To clarify, my intention behind controlling for individual level covariates was to examine whether my level-2 variables (x1 and x2) are related to the mediators, net of age and gender of respondents.

%within%
dv m1 m2;
dv on m1 m2 age gender;
m1 with m2;

%between%
x1 x2;
m1 on x1 x2 age gender;
m2 on x1 x2 age gender;
x1 with x2;

Thank you in advance.
 Bengt O. Muthen posted on Friday, January 10, 2014 - 7:54 pm
You can do this, but note that age and gender on Between correspond to the cluster-means of those variables.
 Shiny7 posted on Tuesday, November 18, 2014 - 11:24 am
Hey,

is it correct that multilevel path modeling may produce 'conflated or biased estimates of between- and within-level components of indirect effects' (see e.g. Preacher, Zhang, Zyphur 2010 p. 211, 2011)?

My model is a simple twolevel model with a mediation path on level 1 (1-1-1) and estimator MLR.

x= Level 1 predictor
m= Level 1 mediator
y= Level 1 Outcome (with variance within and between)

No random slopes.

Could you please help me with that question? Is my model okay or do I have to worry about bias? Do you provide publications on that topic or input examples?

Thank you so much in advance!
 Bengt O. Muthen posted on Tuesday, November 18, 2014 - 2:49 pm
I don't think there is any bias issue in a 1-1-1 model.
 Shiny7 posted on Thursday, November 20, 2014 - 12:36 am
Okay, thank you.
 IW posted on Monday, March 26, 2018 - 12:20 pm
Following up on the 1-1-1 comment above by Shiny7. Does Mplus grand mean center for between effects and group mean center for within effects?
 Bengt O. Muthen posted on Monday, March 26, 2018 - 5:06 pm
You choose in your analysis specifications whether and which centering is used.
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: