EconPapers    
Economics at your fingertips  
 

IVMEDIATE: Stata module to perform causal mediation analysis in instrumental-variables regressions

Christian Dippel (), Andreas Ferrara and Stephan Heblich ()
Additional contact information
Christian Dippel: UCLA Anderson School of Management
Stephan Heblich: University of Toronto

Statistical Software Components from Boston College Department of Economics

Abstract: ivmediate implements the causal mediation analysis framework for linear IV models introduced by Dippel et al. (2019). It estimates three effects: i) the total effect of a single treatment T on an outcome Y, where T is instrumented with a single IV Z, that is, a variable that affects Y only through T, ii) the direct effect of T on Y net of the effect of a mediator variable M, and iii) the indirect effect (mediation effect) of a third variable M through which T affects Y. The command allows for unpacking the treatment effect from a standard IV regression into the direct and indirect effects of (potentially) endogenous treatment and mediator variables without the need for an additional instrument for the mediator variable. This compares with frameworks that require an instrument for the mediator (Frölich and Huber 2017; Jun et al. 2016) or those where random assignment of the treatment is assumed (Imai, Keele, and Tingley 2010).

Language: Stata
Requires: Stata version 11
Keywords: causal mediation; instrumental variables (search for similar items in EconPapers)
Date: 2023-08-22
Note: This module should be installed from within Stata by typing "ssc install ivmediate". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/i/ivmediate.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/i/ivmediate.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/i/ivmediate_Becker_Woessmann_2009_example.do sample do-file (text/plain)
http://fmwww.bc.edu/repec/bocode/i/ipehd_qje2009_master.dta supplementary 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: https://EconPapers.repec.org/RePEc:boc:bocode:s459237

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

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 2025-03-30
Handle: RePEc:boc:bocode:s459237