一文读懂中介效应之sgmediation操作
sgmediation depvar [if exp] [in range] , mv:(mediatorvar) iv(indvar) [ cv(covarlist) quietly ]
cv(covarlist) Optional list of covariate variables.
quietly Suppresses the individual regression output.
edit
desc
sgmediation science, mv(read) iv(math)
In this example the mediation effect of read was statistically significant with approximately 40% of the total effect (of math onscience) being mediated.
在这个例子中,read的中介效果在统计上是显著的,大约40%的总效果(数学对科学)是被中介的。
sgmediation science, mv(read) iv(math) cv(write)
bootstrap r(ind_eff) r(dir_eff), reps(1000): sgmediation science, mv(read) iv(math)
estat bootstrap, percentile bc
If you prefer to do a residual resampling bootstrap rather than case resampling bootstrap, you can use the resboot-mediationcommand (findit resboot_mediation).
bootstrap with residual resampling need to install resboot_mediation
findit resboot_mediaton
resboot_mediation, dv(science) mv(read) iv(math) reps(1000)
Aroian, L.A. (1944). The probability function of the product of two normally distributed variables. Annals of Mathematical Statistics, 18, 265-271.
Baron, R.M. & Kenny, D.A. (1986), Moderator-Mediator Variables Distinction in Social Psychological Research: Conceptual, Strategic, and Statistical Considerations. Journal of Personality and Social Psychology, 51 (6), 1173–82.
Goodman, L.A. (1960) On the exact variance of products. Journal of the American Statistical Association, 55, 708-713.
MacKinnon, D. P. & Dwyer, J. H. (1993). Estimating mediated effects in prevention studies. Evaluation Review, 17, 144-158.
MacKinnon, D. P., Warsi, G., & Dwyer, J. H. (1995). A simulation study of mediated effect measures. Multivariate Behavioral Research, 30(1), 41-62.
Preacher, K. J. & Hayes, A. F. (2004). SPSS and SAS procedures for estimating indirect effects in simple mediation models. Behavior Research Methods, Instruments, & Computers, 36(4), 717-731.
Sobel, M.E. (1982) Asymptotic confidence intervals for indirect effects in structural equation models. Sociological Methodology, 13, 290-312.
Sobel, M.E. (1986) Some new results on indirect effects and their standard errors in covariance structure models. Sociological Methodology, 16, 159-186.
◆◆◆◆
精彩回顾
点击上图查看:
Stata寒假研讨班_2020年1月8日——1月11日_第13届“高级计量经济学及stata应用”研讨班@北京专场
点击上图查看:
Stata寒假研讨班_2020年1月15日——1月18日_第14届“高级计量经济学及stata应用”研讨班@北京专场