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

CRAN

264

Last 30 days

15800th

673

Last 90 days

2.6K

Last year

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

r2u CRAN

9

Last 30 days

26

Last 90 days

116

Last year

Trend: -43.8% (30d vs prior 30d)

autoCRAN

5

Last 7 days

11

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 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-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

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