“Mplus Path Analysis Example 3.18”的版本间的差异
来自OBHRM百科
Lichaoping(讨论 | 贡献) |
Lichaoping(讨论 | 贡献) (→代码与注释) |
||
第3行: | 第3行: | ||
==代码与注释== | ==代码与注释== | ||
− | TITLE: this is an example of moderated mediation with a plot of the indirect effect | + | <pre>TITLE: this is an example of moderated mediation with a plot of the indirect effect |
DATA: FILE = ex3.18.dat; | DATA: FILE = ex3.18.dat; | ||
VARIABLE: NAMES = y m x z; | VARIABLE: NAMES = y m x z; | ||
第21行: | 第21行: | ||
indirect = b*(gamma1+gamma2*mod); | indirect = b*(gamma1+gamma2*mod); | ||
PLOT: TYPE = PLOT2; | PLOT: TYPE = PLOT2; | ||
− | OUTPUT: STANDARDIZED TECH8; | + | OUTPUT: STANDARDIZED TECH8;</pre> |
2017年3月17日 (五) 15:29的版本
示意图
代码与注释
TITLE: this is an example of moderated mediation with a plot of the indirect effect DATA: FILE = ex3.18.dat; VARIABLE: NAMES = y m x z; USEVARIABLES = y m x z xz; DEFINE: xz = x*z; ANALYSIS: ESTIMATOR = BAYES; PROCESSORS = 2; BITERATIONS = (30000); MODEL: y ON m (b) x z; m ON x (gamma1) z xz (gamma2); MODEL CONSTRAINT: PLOT(indirect); LOOP(mod,-2,2,0.1); indirect = b*(gamma1+gamma2*mod); PLOT: TYPE = PLOT2; OUTPUT: STANDARDIZED TECH8;