We implement causal mediation analysis using the methods proposed by Hong (2010) and Hong, Deutsch & Hill (2015) <doi:10.3102/1076998615583902>. It allows the estimation and hypothesis testing of causal mediation effects through ratio of mediator probability weights (RMPW). This strategy conveniently relaxes the assumption of no treatment-by-mediator interaction while greatly simplifying the outcome model specification without invoking strong distributional assumptions. We also implement a sensitivity analysis by extending the RMPW method to assess potential bias in the presence of omitted pretreatment or posttreatment covariates. The sensitivity analysis strategy was proposed by Hong, Qin, and Yang (2018) <doi:10.3102/1076998617749561>.
| Version: | 0.0.6 |
| Depends: | R (≥ 3.3.0), gtools, MASS |
| Published: | 2025-11-17 |
| DOI: | 10.32614/CRAN.package.rmpw |
| Author: | Xu Qin [aut, cre], Guanglei Hong [aut], Fan Yang [aut] |
| Maintainer: | Xu Qin <xuqin at uchicago.edu> |
| License: | GPL-2 |
| NeedsCompilation: | no |
| In views: | CausalInference |
| CRAN checks: | rmpw results |
| Reference manual: | rmpw.html , rmpw.pdf |
| Package source: | rmpw_0.0.6.tar.gz |
| Windows binaries: | r-devel: rmpw_0.0.6.zip, r-release: rmpw_0.0.6.zip, r-oldrel: rmpw_0.0.6.zip |
| macOS binaries: | r-release (arm64): rmpw_0.0.6.tgz, r-oldrel (arm64): rmpw_0.0.6.tgz, r-release (x86_64): rmpw_0.0.6.tgz, r-oldrel (x86_64): rmpw_0.0.6.tgz |
| Old sources: | rmpw archive |
Please use the canonical form https://CRAN.R-project.org/package=rmpw to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.