Skip to content

moderate.mediation

0.0.12Package record

Causal Moderated Mediation Analysis

0packages depend
6Kdownloads / year
–test coverage
13/13flavors OK

Overview

About
Maintained by Xu QinCRAN page ↗

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

CRAN checks
13OK
Slowest check: 2.7 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.0.12
READMENoVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
6
Examples that run
20%1 run in a plain check · 4 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
85%
Return-value docs
100%
Help pages citing references
83%

Downloads

6K
CRAN downloads in the past year
Rank #10,025 · ~16/day · ~498/mo
Daily download trend is not available in this view yet.
40030 days
99290 days
6K1 year
Compare downloads with other packages →
Also on71 r2u6 autocran

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

Installing moderate.mediation adds 36 packages (15 with compiled code, 34 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, Rcpp 1.8 MB.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 0.0.1 (2023), Copyright holder
Contributor
Releases (12)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.0.12Latest
    record
    2025-08-22 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.0.11
    record
    2025-04-04 · diff ↗
  • 0.0.10
    record
    2024-05-23 · diff ↗
  • 0.0.9
    record
    2024-04-24 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • unarchivedReturned to CRAN
    2024-02-29
  • 0.0.8
    record
    2024-02-29 · diff ↗
  • archivedRemoved from CRAN
    2024-02-11
    policy violations Including sending CRAN painful HTML and requiring an orphaned package
  • 0.0.7
    record
    2023-11-27 · diff ↗
  • 0.0.6
    record
    2023-10-19 · diff ↗
  • unarchivedReturned to CRAN
    2023-06-06
  • 0.0.5
    record
    2023-06-06 · diff ↗
  • archivedRemoved from CRAN
    2023-05-11
    policy violation Using all the CPU cores by default
  • 0.0.4
    record
    2023-04-27 · diff ↗
Show 5 earlier eventsHide 5 earlier events
  • 0.0.3
    record
    2023-04-26 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.0.2
    record
    2023-03-18 · diff ↗
  • 0.0.1
    record
    2023-02-15
  • R
    R 4.2.0 released · 2022-04-22

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

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("moderate.mediation")
Qin, X., & Wang, L. (2025). moderate.mediation: Causal Moderated Mediation Analysis (Version 0.0.12) [Computer software]. https://doi.org/10.32614/CRAN.package.moderate.mediation

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for moderate.mediation version 0.0.12 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy