Dear All,
I am looking for some guidance on how to conduct a multilevel serial mediation using either R or Mplus. I have my predictor variable at level-2 and the mediators (2 mediators) and the outcome at level-1 (2-1-1-1).
I am new to Mplus and have tried to write the code. I am unsure if it is correct. This is based on the syntax file provided by Preacher et al. on the MPlus website.
Here is my code:
VARIABLE:
NAMES = id age mot es effec;
USEVARIABLES = age mot es effec id;
CLUSTER = id;
BETWEEN = age;
MISSING = ALL (-9999);
ANALYSIS:
TYPE = TWOLEVEL;
BOOTSTRAP = 10000;
MODEL:
%WITHIN%
es mot effec;
es ON mot (w1);
effec ON es (w2);
effec ON mot (w3);
%BETWEEN%
age es mot effec;
mot ON age (b1);
es ON age (b2);
effec ON age (c);
effec ON es (b3);
effec ON mot (b4);
es ON mot (b5);
MODEL CONSTRAINT:
NEW(indb);
indb=b1*b2*b3*b4*b5;
OUTPUT:
TECH1 TECH8 CINTERVAL;
Any guidance will be appreciated.
Thanks,
Aishwarya