来自图书《MPlus中介调节模型》
模型方程:
Y = b0 + b1M1 + b2M2 + b3M3 + c'X
M1 = a01 + a1X
M2 = a02 + a2X
M3 = a03 + a3X + d1M1 + d2M2
第一步:替换 M1 和 M2
Y = b0 + b1(a01 + a1X) + b2(a02 + a2X) + b3M3 + c'X
M3 = a03 + a3X + d1(a01 + a1X) + d2(a02 + a2X)
第二步:再次替换 M3
Y = b0 + b1(a01 + a1X) + b2(a02 + a2X) + b3(a03 + a3X + d1(a01 + a1X) + d2(a02 + a2X)) + c'X
模型方程:
Y = b0 + b1M1 + b2M2 + b3M3 + c'X
M1 = a01 + a1X
M2 = a02 + a2X
M3 = a03 + a3X + d1M1 + d2M2
第一步:替换 M1 和 M2
Y = b0 + b1(a01 + a1X) + b2(a02 + a2X) + b3M3 + c'X
M3 = a03 + a3X + d1(a01 + a1X) + d2(a02 + a2X)
第二步:再次替换 M3
Y = b0 + b1(a01 + a1X) + b2(a02 + a2X) + b3(a03 + a3X + d1(a01 + a1X) + d2(a02 + a2X)) + c'X
第三步:展开括号
Y = b0 + a01b1 + a1b1X + a02b2 + a2b2X + a03b3 + a3b3X + a01d1b3 + a1d1b3X + a02d2b3 + a2d2b3X + c'X
模型方程:
Y = b0 + b1M1 + b2M2 + b3M3 + c'X
M1 = a01 + a1X
M2 = a02 + a2X
M3 = a03 + a3X + d1M1 + d2M2
第一步:替换 M1 和 M2
Y = b0 + b1(a01 + a1X) + b2(a02 + a2X) + b3M3 + c'X
M3 = a03 + a3X + d1(a01 + a1X) + d2(a02 + a2X)
第二步:再次替换 M3
Y = b0 + b1(a01 + a1X) + b2(a02 + a2X) + b3(a03 + a3X + d1(a01 + a1X) + d2(a02 + a2X)) + c'X
第三步:展开括号
Y = b0 + a01b1 + a1b1X + a02b2 + a2b2X + a03b3 + a3b3X + a01d1b3 + a1d1b3X + a02d2b3 + a2d2b3X + c'X
第四步:整理表达式
Y = (b0 + a01b1 + a02b2 + a03b3 + a01d1b3 + a02d2b3) + (a1b1 + a2b2 + a3b3 + a1d1b3 + a2d2b3 + c')X
模型方程:
Y = b0 + b1M1 + b2M2 + b3M3 + c'X
M1 = a01 + a1X
M2 = a02 + a2X
M3 = a03 + a3X + d1M1 + d2M2
第一步:替换 M1 和 M2
Y = b0 + b1(a01 + a1X) + b2(a02 + a2X) + b3M3 + c'X
M3 = a03 + a3X + d1(a01 + a1X) + d2(a02 + a2X)
第二步:再次替换 M3
Y = b0 + b1(a01 + a1X) + b2(a02 + a2X) + b3(a03 + a3X + d1(a01 + a1X) + d2(a02 + a2X)) + c'X
第三步:展开括号
Y = b0 + a01b1 + a1b1X + a02b2 + a2b2X + a03b3 + a3b3X + a01d1b3 + a1d1b3X + a02d2b3 + a2d2b3X + c'X
第四步:整理表达式
Y = (b0 + a01b1 + a02b2 + a03b3 + a01d1b3 + a02d2b3) + (a1b1 + a2b2 + a3b3 + a1d1b3 + a2d2b3 + c')X
效应分解:
间接效应:
* a1b1
* a2b2
* a3b3
* a1b3d1
* a2d2b3
直接效应:
* c'
! Latent predictor variable X measured by X1-X4
! Latent mediator variables M1, M2 and M3, measured by M1_1-M1_4, M2_1-M2_4 and M3_1-M3_4 respectively
! Moderator variable(s) - none
! Latent outcome variable Y measured by Y1-Y4
USEVARIABLES = X1 X2 X3 X4 M1_1 M1_2 M1_3 M1_4 M2_1 M2_2 M2_3 M2_4 M3_1 M3_2 M3_3 M3_4 Y1 Y2 Y3 Y4;
! Latent predictor variable X measured by X1-X4
! Latent mediator variables M1, M2 and M3, measured by M1_1-M1_4, M2_1-M2_4 and M3_1-M3_4 respectively
! Moderator variable(s) - none
! Latent outcome variable Y measured by Y1-Y4
USEVARIABLES = X1 X2 X3 X4 M1_1 M1_2 M1_3 M1_4 M2_1 M2_2 M2_3 M2_4 M3_1 M3_2 M3_3 M3_4 Y1 Y2 Y3 Y4;
ANALYSIS:
TYPE = GENERAL;
ESTIMATOR = ML;
BOOTSTRAP = 10000;
! Latent predictor variable X measured by X1-X4
! Latent mediator variables M1, M2 and M3, measured by M1_1-M1_4, M2_1-M2_4 and M3_1-M3_4 respectively
! Moderator variable(s) - none
! Latent outcome variable Y measured by Y1-Y4
USEVARIABLES = X1 X2 X3 X4 M1_1 M1_2 M1_3 M1_4 M2_1 M2_2 M2_3 M2_4 M3_1 M3_2 M3_3 M3_4 Y1 Y2 Y3 Y4;
ANALYSIS:
TYPE = GENERAL;
ESTIMATOR = ML;
BOOTSTRAP = 10000;
! In model statement first state measurement model
! Then state structural model naming each path and intercept using parentheses
MODEL:
! Measurement model
X BY X1 X2 X3 X4;
M1 BY M1_1 M1_2 M1_3 M1_4;
M2 BY M2_1 M2_2 M2_3 M2_4;
M3 BY M3_1 M3_2 M3_3 M3_4;
Y BY Y1 Y2 Y3 Y4;
! Latent predictor variable X measured by X1-X4
! Latent mediator variables M1, M2 and M3, measured by M1_1-M1_4, M2_1-M2_4 and M3_1-M3_4 respectively
! Moderator variable(s) - none
! Latent outcome variable Y measured by Y1-Y4
USEVARIABLES = X1 X2 X3 X4 M1_1 M1_2 M1_3 M1_4 M2_1 M2_2 M2_3 M2_4 M3_1 M3_2 M3_3 M3_4 Y1 Y2 Y3 Y4;
ANALYSIS:
TYPE = GENERAL;
ESTIMATOR = ML;
BOOTSTRAP = 10000;
! In model statement first state measurement model
! Then state structural model naming each path and intercept using parentheses
MODEL:
! Measurement model
X BY X1 X2 X3 X4;
M1 BY M1_1 M1_2 M1_3 M1_4;
M2 BY M2_1 M2_2 M2_3 M2_4;
M3 BY M3_1 M3_2 M3_3 M3_4;
Y BY Y1 Y2 Y3 Y4;
! Fit structural model and name parameters
Y ON M1 (b1);
Y ON M2 (b2);
Y ON M3 (b3);
Y ON X (cdash);
! direct effect of X on Y
M1 ON X (a1);
M2 ON X (a2);
M3 ON X (a3);
M3 ON M1 (d1);
M3 ON M2 (d2);
! Latent predictor variable X measured by X1-X4
! Latent mediator variables M1, M2 and M3, measured by M1_1-M1_4, M2_1-M2_4 and M3_1-M3_4 respectively
! Moderator variable(s) - none
! Latent outcome variable Y measured by Y1-Y4
USEVARIABLES = X1 X2 X3 X4 M1_1 M1_2 M1_3 M1_4 M2_1 M2_2 M2_3 M2_4 M3_1 M3_2 M3_3 M3_4 Y1 Y2 Y3 Y4;
ANALYSIS:
TYPE = GENERAL;
ESTIMATOR = ML;
BOOTSTRAP = 10000;
! In model statement first state measurement model
! Then state structural model naming each path and intercept using parentheses
MODEL:
! Measurement model
X BY X1 X2 X3 X4;
M1 BY M1_1 M1_2 M1_3 M1_4;
M2 BY M2_1 M2_2 M2_3 M2_4;
M3 BY M3_1 M3_2 M3_3 M3_4;
Y BY Y1 Y2 Y3 Y4;
! Fit structural model and name parameters
Y ON M1 (b1);
Y ON M2 (b2);
Y ON M3 (b3);
Y ON X (cdash);
! direct effect of X on Y
M1 ON X (a1);
M2 ON X (a2);
M3 ON X (a3);
M3 ON M1 (d1);
M3 ON M2 (d2);
! Use model constraint to calculate specific indirect paths and total indirect effect
MODEL CONSTRAINT:
NEW(a1b1 a2b2 a3b3 a1d1b3 a2d2b3 TOTALIND TOTAL);
a1b1 = a1*b1;
! Specific indirect effect of X on Y via M1 only
a2b2 = a2*b2;
! Specific indirect effect of X on Y via M2 only
a3b3 = a3*b3;
! Specific indirect effect of X on Y via M3 only
a1d1b3 = a1*d1*b3;
! Specific indirect effect of X on Y via M1 and M3
a2d2b3 = a2*d2*b3;
! Specific indirect effect of X on Y via M2 and M3
TOTALIND = a1b1 + a2b2 + a3b3 + a1d1b3 + a2d2b3;
! Total indirect effect of X on Y via M1, M2, M3
TOTAL = a1b1 + a2b2 + a3b3 + a1d1b3 + a2d2b3 + cdash;
! Total effect of X on Y
! Latent predictor variable X measured by X1-X4
! Latent mediator variables M1, M2 and M3, measured by M1_1-M1_4, M2_1-M2_4 and M3_1-M3_4 respectively
! Moderator variable(s) - none
! Latent outcome variable Y measured by Y1-Y4
USEVARIABLES = X1 X2 X3 X4 M1_1 M1_2 M1_3 M1_4 M2_1 M2_2 M2_3 M2_4 M3_1 M3_2 M3_3 M3_4 Y1 Y2 Y3 Y4;
ANALYSIS:
TYPE = GENERAL;
ESTIMATOR = ML;
BOOTSTRAP = 10000;
! In model statement first state measurement model
! Then state structural model naming each path and intercept using parentheses
MODEL:
! Measurement model
X BY X1 X2 X3 X4;
M1 BY M1_1 M1_2 M1_3 M1_4;
M2 BY M2_1 M2_2 M2_3 M2_4;
M3 BY M3_1 M3_2 M3_3 M3_4;
Y BY Y1 Y2 Y3 Y4;
! Fit structural model and name parameters
Y ON M1 (b1);
Y ON M2 (b2);
Y ON M3 (b3);
Y ON X (cdash);
! direct effect of X on Y
M1 ON X (a1);
M2 ON X (a2);
M3 ON X (a3);
M3 ON M1 (d1);
M3 ON M2 (d2);
! Use model constraint to calculate specific indirect paths and total indirect effect
MODEL CONSTRAINT:
NEW(a1b1 a2b2 a3b3 a1d1b3 a2d2b3 TOTALIND TOTAL);
a1b1 = a1*b1;
! Specific indirect effect of X on Y via M1 only
a2b2 = a2*b2;
! Specific indirect effect of X on Y via M2 only
a3b3 = a3*b3;
! Specific indirect effect of X on Y via M3 only
a1d1b3 = a1*d1*b3;
! Specific indirect effect of X on Y via M1 and M3
a2d2b3 = a2*d2*b3;
! Specific indirect effect of X on Y via M2 and M3
TOTALIND = a1b1 + a2b2 + a3b3 + a1d1b3 + a2d2b3;
! Total indirect effect of X on Y via M1, M2, M3
TOTAL = a1b1 + a2b2 + a3b3 + a1d1b3 + a2d2b3 + cdash;
! Total effect of X on Y
OUTPUT:
STAND CINT(bcbootstrap);
! Latent predictor variable X measured by X1-X4
! Latent mediator variables M1, M2 and M3, measured by M1_1-M1_4, M2_1-M2_4 and M3_1-M3_4 respectively
! Moderator variable(s) - none
! Latent outcome variable Y measured by Y1-Y4
USEVARIABLES = X1 X2 X3 X4 M1_1 M1_2 M1_3 M1_4 M2_1 M2_2 M2_3 M2_4 M3_1 M3_2 M3_3 M3_4 Y1 Y2 Y3 Y4;
ANALYSIS:
TYPE = GENERAL;
ESTIMATOR = ML;
BOOTSTRAP = 10000;
! In model statement first state measurement model
! Then state structural model naming each path and intercept using parentheses
MODEL:
! Measurement model
X BY X1 X2 X3 X4;
M1 BY M1_1 M1_2 M1_3 M1_4;
M2 BY M2_1 M2_2 M2_3 M2_4;
M3 BY M3_1 M3_2 M3_3 M3_4;
Y BY Y1 Y2 Y3 Y4;
! Fit structural model and name parameters
Y ON M1 (b1);
Y ON M2 (b2);
Y ON M3 (b3);
Y ON X (cdash);
! direct effect of X on Y
M1 ON X (a1);
M2 ON X (a2);
M3 ON X (a3);
M3 ON M1 (d1);
M3 ON M2 (d2);
! Use model constraint to calculate specific indirect paths and total indirect effect
MODEL CONSTRAINT:
NEW(a1b1 a2b2 a3b3 a1d1b3 a2d2b3 TOTALIND TOTAL);
a1b1 = a1*b1;
! Specific indirect effect of X on Y via M1 only
a2b2 = a2*b2;
! Specific indirect effect of X on Y via M2 only
a3b3 = a3*b3;
! Specific indirect effect of X on Y via M3 only
a1d1b3 = a1*d1*b3;
! Specific indirect effect of X on Y via M1 and M3
a2d2b3 = a2*d2*b3;
! Specific indirect effect of X on Y via M2 and M3
TOTALIND = a1b1 + a2b2 + a3b3 + a1d1b3 + a2d2b3;
! Total indirect effect of X on Y via M1, M2, M3
TOTAL = a1b1 + a2b2 + a3b3 + a1d1b3 + a2d2b3 + cdash;
! Total effect of X on Y
OUTPUT:
STAND CINT(bcbootstrap);
MODEL:
Y ON X M1 M2 M3;
M1 M2 ON X;
M3 ON M1 M2 X;
! Latent predictor variable X measured by X1-X4
! Latent mediator variables M1, M2 and M3, measured by M1_1-M1_4, M2_1-M2_4 and M3_1-M3_4 respectively
! Moderator variable(s) - none
! Latent outcome variable Y measured by Y1-Y4
USEVARIABLES = X1 X2 X3 X4 M1_1 M1_2 M1_3 M1_4 M2_1 M2_2 M2_3 M2_4 M3_1 M3_2 M3_3 M3_4 Y1 Y2 Y3 Y4;
ANALYSIS:
TYPE = GENERAL;
ESTIMATOR = ML;
BOOTSTRAP = 10000;
! In model statement first state measurement model
! Then state structural model naming each path and intercept using parentheses
MODEL:
! Measurement model
X BY X1 X2 X3 X4;
M1 BY M1_1 M1_2 M1_3 M1_4;
M2 BY M2_1 M2_2 M2_3 M2_4;
M3 BY M3_1 M3_2 M3_3 M3_4;
Y BY Y1 Y2 Y3 Y4;
! Fit structural model and name parameters
Y ON M1 (b1);
Y ON M2 (b2);
Y ON M3 (b3);
Y ON X (cdash);
! direct effect of X on Y
M1 ON X (a1);
M2 ON X (a2);
M3 ON X (a3);
M3 ON M1 (d1);
M3 ON M2 (d2);
! Use model constraint to calculate specific indirect paths and total indirect effect
MODEL CONSTRAINT:
NEW(a1b1 a2b2 a3b3 a1d1b3 a2d2b3 TOTALIND TOTAL);
a1b1 = a1*b1;
! Specific indirect effect of X on Y via M1 only
a2b2 = a2*b2;
! Specific indirect effect of X on Y via M2 only
a3b3 = a3*b3;
! Specific indirect effect of X on Y via M3 only
a1d1b3 = a1*d1*b3;
! Specific indirect effect of X on Y via M1 and M3
a2d2b3 = a2*d2*b3;
! Specific indirect effect of X on Y via M2 and M3
TOTALIND = a1b1 + a2b2 + a3b3 + a1d1b3 + a2d2b3;
! Total indirect effect of X on Y via M1, M2, M3
TOTAL = a1b1 + a2b2 + a3b3 + a1d1b3 + a2d2b3 + cdash;
! Total effect of X on Y
OUTPUT:
STAND CINT(bcbootstrap);
MODEL:
Y ON X M1 M2 M3;
M1 M2 ON X;
M3 ON M1 M2 X;
MODEL INDIRECT:
Y IND X;
! Latent predictor variable X measured by X1-X4
! Latent mediator variables M1, M2 and M3, measured by M1_1-M1_4, M2_1-M2_4 and M3_1-M3_4 respectively
! Moderator variable(s) - none
! Latent outcome variable Y measured by Y1-Y4
USEVARIABLES = X1 X2 X3 X4 M1_1 M1_2 M1_3 M1_4 M2_1 M2_2 M2_3 M2_4 M3_1 M3_2 M3_3 M3_4 Y1 Y2 Y3 Y4;
ANALYSIS:
TYPE = GENERAL;
ESTIMATOR = ML;
BOOTSTRAP = 10000;
! In model statement first state measurement model
! Then state structural model naming each path and intercept using parentheses
MODEL:
! Measurement model
X BY X1 X2 X3 X4;
M1 BY M1_1 M1_2 M1_3 M1_4;
M2 BY M2_1 M2_2 M2_3 M2_4;
M3 BY M3_1 M3_2 M3_3 M3_4;
Y BY Y1 Y2 Y3 Y4;
! Fit structural model and name parameters
Y ON M1 (b1);
Y ON M2 (b2);
Y ON M3 (b3);
Y ON X (cdash);
! direct effect of X on Y
M1 ON X (a1);
M2 ON X (a2);
M3 ON X (a3);
M3 ON M1 (d1);
M3 ON M2 (d2);
! Use model constraint to calculate specific indirect paths and total indirect effect
MODEL CONSTRAINT:
NEW(a1b1 a2b2 a3b3 a1d1b3 a2d2b3 TOTALIND TOTAL);
a1b1 = a1*b1;
! Specific indirect effect of X on Y via M1 only
a2b2 = a2*b2;
! Specific indirect effect of X on Y via M2 only
a3b3 = a3*b3;
! Specific indirect effect of X on Y via M3 only
a1d1b3 = a1*d1*b3;
! Specific indirect effect of X on Y via M1 and M3
a2d2b3 = a2*d2*b3;
! Specific indirect effect of X on Y via M2 and M3
TOTALIND = a1b1 + a2b2 + a3b3 + a1d1b3 + a2d2b3;
! Total indirect effect of X on Y via M1, M2, M3
TOTAL = a1b1 + a2b2 + a3b3 + a1d1b3 + a2d2b3 + cdash;
! Total effect of X on Y
OUTPUT:
STAND CINT(bcbootstrap);
MODEL:
Y ON X M1 M2 M3;
M1 M2 ON X;
M3 ON M1 M2 X;
MODEL INDIRECT:
Y IND X;
OUTPUT:
STAND CINT(bcbootstrap);