rmpw
0.0.6Causal Mediation Analysis Using Weighting Approach
Overview
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.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 30.0 median / 32 max
- Documented parameters
- 100%
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
3 3 exported
Complexity
26 avg / 32 max
Call network
3 nodes / 0 edges
Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
People & History
6 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.0.6Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.0.52024-03-06 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.0.42018-07-18 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.0.32018-01-04 · diff ↗
- 0.0.22017-12-21 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 0.0.12017-02-27
Show 1 earlier events
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2017-02-27
- Total releases
- 6 / 9 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 3.3.0
- Bundled data
- 16 KB / 1 file
- Download size
- 32 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet