Mediation files
Post date: Oct 23, 2017 10:35:38 PM
Install sgmediation
First, check whether it is already installed. type 'sgmediation'. If it says "command sgmediation is unrecognized" then you do need to install it. Otherwise, you're done -- you can skip the following steps.
locate your ado folder. In Stata, type 'sysdir'. Look at the path for "plus". Typically this is "c:\ado\plus". Outside of Stata, navigate to this folder. If it doesn't exist, create it.
download the following two files to that folder:
Do file for class
Stata documentation
Datasets
Supplementary
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