Skip to content

rmpw

0.0.6

Causal Mediation Analysis Using Weighting Approach

0packages depend
2.7Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Xu QinFirst published 2017-02-276 releasesCRAN page ↗

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

CRAN checks
13OK
Slowest check: 56 s · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
None
Vignettes
No
README
2
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

2.7K
CRAN downloads in the past year
Rank #15,919 · ~7/day · ~222/mo
Daily download trend is not available in this view yet.
27130 days
70690 days
2.7K1 year
Compare downloads with other packages →
Also on109 r2u19 autocran

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)
Depends (3)
R >= 3.3.0gtoolsMASS
Imports (0)
none
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 1,042 (84%)Rd 196 (16%)
Code characteristics
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.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author
Release timeline

6 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.0.6Latest
    2025-11-17 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.0.5
    2024-03-06 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.0.4
    2018-07-18 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.0.3
    2018-01-04 · diff ↗
  • 0.0.2
    2017-12-21 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.0.1
    2017-02-27
Show 1 earlier events
  • R
    R 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