CRAN/E | moderate.mediation

moderate.mediation

Causal Moderated Mediation Analysis

Installation

About

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.

Key Metrics

Version 0.0.9
R ≥ 3.5.0
Published 2024-04-24 10 days ago
Needs compilation? no
License GPL-2
CRAN checks moderate.mediation results

Downloads

Yesterday 16 0%
Last 7 days 126 -46%
Last 30 days 677 -18%
Last 90 days 1.696 +70%
Last 365 days 3.927 +482%

Maintainer

Maintainer

Xu Qin

xuqin@pitt.edu

Authors

Xu Qin

aut / cre / cph

Lijuan Wang

ctb

Material

Reference manual
Package source

macOS

r-prerel

arm64

r-release

arm64

r-oldrel

arm64

r-prerel

x86_64

r-release

x86_64

Windows

r-prerel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

moderate.mediation archive

Depends

R ≥ 3.5.0

Imports

stats
mvtnorm
cowplot
distr
graphics
ggplot2
reshape2
doSNOW
scales
foreach
earth