Learn R Programming

rmpw (version 0.0.6)

Causal Mediation Analysis Using Weighting Approach

Description

We implement causal mediation analysis using the methods proposed by Hong (2010) and Hong, Deutsch & Hill (2015) . 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) .

Copy Link

Version

Install

install.packages('rmpw')

Monthly Downloads

178

Version

0.0.6

License

GPL-2

Maintainer

Xu Qin

Last Published

November 17th, 2025

Functions in rmpw (0.0.6)

rmpw

Causal Mediation Analysis Using Weighting Approach
sensitivity.plot

Sensitivity Analysis Plot for Causal Mediation Analysis Using Weighting Approach
Riverside

NEWWS Riverside data
sensitivity

Sensitivity Analysis for Causal Mediation Analysis Using Weighting Approach