Economics at your fingertips  

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

Abstract: 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.

Language: Stata
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". The module is made available under terms of the GPL v3 ( 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) program code (text/plain) help file (text/plain) program code (text/plain) help file (text/plain) sample data file (application/x-stata) sample data file (application/x-stata) sample data file (application/x-stata)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link:

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.
Bibliographic data for series maintained by Christopher F Baum ().

Page updated 2020-07-09
Handle: RePEc:boc:bocode:s457294