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.
| Version: | 0.0.12 |
| Depends: | R (≥ 3.5.0) |
| Imports: | stats, mvtnorm, cowplot, distr, graphics, ggplot2, reshape2, doSNOW, scales, foreach, earth |
| Published: | 2025-08-22 |
| DOI: | 10.32614/CRAN.package.moderate.mediation |
| Author: | Xu Qin [aut, cre, cph], Lijuan Wang [ctb] |
| Maintainer: | Xu Qin <xuqin at pitt.edu> |
| License: | GPL-2 |
| NeedsCompilation: | no |
| CRAN checks: | moderate.mediation results |
| Reference manual: | moderate.mediation.html , moderate.mediation.pdf |
| Package source: | moderate.mediation_0.0.12.tar.gz |
| Windows binaries: | r-devel: moderate.mediation_0.0.12.zip, r-release: moderate.mediation_0.0.12.zip, r-oldrel: moderate.mediation_0.0.12.zip |
| macOS binaries: | r-release (arm64): moderate.mediation_0.0.12.tgz, r-oldrel (arm64): moderate.mediation_0.0.12.tgz, r-release (x86_64): moderate.mediation_0.0.12.tgz, r-oldrel (x86_64): moderate.mediation_0.0.12.tgz |
| Old sources: | moderate.mediation archive |
Please use the canonical form https://CRAN.R-project.org/package=moderate.mediation to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.