MEDIATION: Stata module for causal mediation analysis and sensitivity analysis
Raymond Hicks () and
Dustin Tingley ()
Additional contact information
Raymond Hicks: Niehaus Center for Globalization and Governance, Princeton University
Statistical Software Components from Boston College Department of Economics
mediation estimates the role of particular causal mechanisms that mediate a relationship between treatment and outcome variables. Calculates causal mediation effects and direct effects for models with continuous or binary dependent variables using methods presented in Imai et al 2010. Also calculates sensitivity analyses for mediation effects that are necessary due to non-random assignment of mediating variable. Package replaces earlier approaches like the "Baron-Kenny" method and "Sobel test" for the case of continuous mediator and outcome variables, producing identical results as these earlier methods but not put in a causal inference framework and with sensitivity analyses to the key identification assumption. For models with binary mediators or outcomes, correct calculation of mediation effects are implemented that take into account the use of non-linear models such as probit.
Requires: Stata version 10 and moremata (q.v.)
Keywords: causal mediation effects; binary outcome; continuous outcome (search for similar items in EconPapers)
Date: 2011-06-18, Revised 2012-11-19
Note: This module should be installed from within Stata by typing "ssc install mediation". Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations Track citations by RSS feed
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/m/medeff.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/m/medeff.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/m/medsens.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/m/medsens.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/b/BinaryMediatorContOutcome.dta sample data file (application/x-stata)
http://fmwww.bc.edu/repec/bocode/c/ContMediatorBinaryOutcome.dta sample data file (application/x-stata)
http://fmwww.bc.edu/repec/bocode/c/ContMediatorContOutcome.dta sample data file (application/x-stata)
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
Persistent link: http://EconPapers.repec.org/RePEc:boc:bocode:s457294
Ordering information: This software item can be ordered from
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Series data maintained by Christopher F Baum ().