Skip to content

rmpw

Causal Mediation Analysis Using Weighting Approach

v0.0.6 · Nov 17, 2025 · GPL-2

Description

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

Downloads

269

Last 30 days

15883rd

660

Last 90 days

2.4K

Last year

Trend: +18% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies gtools MASS rmpw

Version History

new 0.0.6 Mar 10, 2026
updated 0.0.6 ← 0.0.5 diff Nov 16, 2025
updated 0.0.5 ← 0.0.4 diff Mar 5, 2024
updated 0.0.4 ← 0.0.3 diff Jul 17, 2018
updated 0.0.3 ← 0.0.2 diff Jan 3, 2018
updated 0.0.2 ← 0.0.1 diff Dec 20, 2017
new 0.0.1 Feb 26, 2017