About the adjustment of the mediation model analysis
Independent variable X, M mediation variables, Z adjusting variable, dependent variable Y
Below is the code, but you can't run, run time has been in this way, the end of the last also have no result (image behind the code)
Thank you very much for reading and help, if you know how to solve the friend, can private chat, grateful, thank you!
TITLE: files to run moderated mediation
DATA: the FILE=C: \ Users \ \ Desktop \ mplus1228 Dell \ chuli1 dat.
VARIABLE NAMES=x1 - x5 m1 - m34 z1 z50’s y1 - y34 sex;
USEVARIABLES=x1 - x5 m1 - m34 z1 z50’s y1 - y34;
ANALYSIS:
TYPE=RANDOM;
ESTIMATOR=ML;
ALGORITHM=INTEGRATION;
The BOOTSTRAP=10000;
MODEL: BY x1 - X 5 X;
M BY m1 - m34;
Z BY z1 - z50’s;
Y BY y1 - y34;
XZ | X XWITH Z;
Y on X (cprime)
M (b1);
M on X (a1)
Z (a2)
XZ (a3);
[Z] (zmean);
Z (varz);
The MODEL CONSTRAINT:
NEW (indirect lowZ lowmme);
An indirect=a3 * b1;
LowZ=zmean - SQRT (varz);
Lowmme=(a1 + a3 * lowZ) * b1.
OUTPUT:
CINTERVAL (BCBOOTSTRAP);