Post date: Oct 23, 2017 10:35:38 PM
Scroll down for the actual files.
Two files that create artificial datasets:
mediationsuppressoreffect.do
mediationreversesigns.do
Running mediation via sgmediation program
runsgmediation.do
Two files that contain programs (.ado) and must be saved in your personal ado folder (type sysdir in Stata to find out what folder that should be; you may then have to create the folder manually)
indireff.ado
indireff2.ado
Two files that run the .ado programs:
runindireff.do
runindireff2.do
Stata documentation
https://stats.idre.ucla.edu/stata/faq/how-can-i-do-mediation-analysis-with-the-sem-command/
https://stats.idre.ucla.edu/stata/faq/how-to-perform-sobel-goodman-mediation-tests-in-stata/
Datasets