MMWSMED: Stata module for conducting causal mediation analysis using ratio-of-mediator-probability weighting with parametric or nonparametric weights
Ariel Linden
Statistical Software Components from Boston College Department of Economics
Abstract:
mmwsmed decomposes the total effect of a treatment on an outcome into natural direct and indirect effects using ratio-of-mediator-probability weighting (RMPW; Hong 2010; Hong, Deutsch, and Hill 2015; Hong 2015, chapters 11 to 13). RMPW allows the effect of the mediator on the outcome to differ by treatment (a treatment-by-mediator interaction), makes no assumption about the distribution of the outcome, and requires no model for the outcome. The estimators, the extensions implemented here, and their finite-sample performance are described in Linden (2026). The syntax follows that of mediate.
Language: Stata
Requires: Stata version 15
Keywords: mediation analysis; ratio-of-mediator-probability weighting; marginal mean weighting through stratification; inverse probability of treatment weights; causal inference (search for similar items in EconPapers)
Date: 2026-11-07, Revised 2026-11-12
Note: This module should be installed from within Stata by typing "ssc install mmwsmed". 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/m/mmwsmed.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/m/mmwsmed.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/r/Riverside.dta
http://fmwww.bc.edu/repec/bocode/m/MMWSMED.pdf
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:s460014
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 ().