moderate.mediation
0.0.12Causal Moderated Mediation Analysis
Overview
Causal moderated mediation analysis using the methods proposed by Qin and Wang (2023) doi:10.3758/s13428-023-02095-4. Causal moderated mediation analysis is crucial for investigating how, for whom, and where a treatment is effective by assessing the heterogeneity of mediation mechanism across individuals and contexts. This package enables researchers to estimate and test the conditional and moderated mediation effects, assess their sensitivity to unmeasured pre-treatment confounding, and visualize the results. The package is built based on the quasi-Bayesian Monte Carlo method, because it has relatively better performance at small sample sizes, and its running speed is the fastest. The package is applicable to a treatment of any scale, a binary or continuous mediator, a binary or continuous outcome, and one or more moderators of any scale.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 20%
- Documented parameters
- 85%
- Return-value docs
- 100%
- References docs
- 83%
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
Datasets
People & History
12 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.0.12Latest
- RR 4.5.0 released · 2025-04-11
- 0.0.112025-04-04 · diff ↗
- 0.0.102024-05-23 · diff ↗
- 0.0.92024-04-24 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.0.82024-02-29 · diff ↗
- unarchivedReturned to CRAN2024-02-29
- archivedRemoved from CRAN2024-02-11policy violations Including sending CRAN painful HTML and requiring an orphaned package
- 0.0.72023-11-27 · diff ↗
- 0.0.62023-10-19 · diff ↗
- 0.0.52023-06-06 · diff ↗
- unarchivedReturned to CRAN2023-06-06
- archivedRemoved from CRAN2023-05-11policy violation Using all the CPU cores by default
- 0.0.42023-04-27 · diff ↗
Package metadata
- First published
- 2023-02-15
- Total releases
- 12 / 3 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 11 KB / 1 file
- Download size
- 54 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet