Package: moderate.mediation 0.0.10

Xu Qin

moderate.mediation: Causal Moderated Mediation Analysis

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.

Authors:Xu Qin [aut, cre, cph], Lijuan Wang [ctb]

moderate.mediation_0.0.10.tar.gz
moderate.mediation_0.0.10.tar.gz(r-4.5-noble)moderate.mediation_0.0.10.tar.gz(r-4.4-noble)
moderate.mediation_0.0.10.tgz(r-4.4-emscripten)moderate.mediation_0.0.10.tgz(r-4.3-emscripten)
moderate.mediation.pdf |moderate.mediation.html
moderate.mediation/json (API)

# Install 'moderate.mediation' in R:
install.packages('moderate.mediation', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • newws - NEWWS Riverside data

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.60 score 295 downloads 5 exports 47 dependencies

Last updated 6 months agofrom:7f610ea02f. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-linuxOKNov 20 2024

Exports:modmedmodmed.plotmodmed.senssens.plotsummary_modmed

Dependencies:clicodetoolscolorspacecowplotdistrdoSNOWearthfansifarverforeachFormulaggplot2gluegtableisobanditeratorslabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellmvtnormnlmepillarpkgconfigplotmoplotrixplyrR6RColorBrewerRcppreshape2rlangscalessfsmiscsnowstartupmsgstringistringrtibbleutf8vctrsviridisLitewithr