Skip to content

RMediation

1.6.1

Mediation Analysis Confidence Intervals

0packages depend
8.7Kdownloads / year
53.6%test coverage
13/13checks pass

Overview

About
Maintained by Davood TofighiFirst published 2011-02-0813 releasesCRAN page ↗GitHub ↗

Computes confidence intervals for nonlinear functions of model parameters (e.g., product of k coefficients) in single-level and multilevel structural equation models. Methods include the distribution of the product, Monte Carlo simulation, and bootstrap methods. It also performs the Model-Based Constrained Optimization (MBCO) procedure for hypothesis testing of indirect effects. References: Tofighi, D., and MacKinnon, D. P. (2011). RMediation: An R package for mediation analysis confidence intervals. Behavior Research Methods, 43, 692-700. doi:10.3758/s13428-011-0076-x; Tofighi, D., and Kelley, K. (2020). Improved inference in mediation analysis: Introducing the model-based constrained optimization procedure. Psychological Methods, 25(4), 496-515. doi:10.1037/met0000259; Tofighi, D. (2020). Bootstrap Model-Based Constrained Optimization Tests of Indirect Effects. Frontiers in Psychology, 10, 2989. doi:10.3389/fpsyg.2019.02989.

Install

Health

CRAN checks
13OK
Slowest check: 4.5 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 0.52
53.6%
Coverage · measured lines
100%
Documentation · exports
8
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-03-10
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 610 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
84%
Documented parameters
100%
Return-value docs
76%
References docs
23%

Downloads

8.7K
CRAN downloads in the past year
Rank #4,806 · ~24/day · ~724/mo
Daily download trend is not available in this view yet.
70830 days
1.9K90 days
8.7K1 year
Compare downloads with other packages →
Also on126 r2u18 autocran

Repository

Repository
2Stars
0Forks
2Open issues
0Open PRs
3Releases
277Commits
2Contributors
causal-inferenceconfidence-intervalslikelihood-ratio-testmediationmediation-analysis
License GPL-3.0 · 277 commits · Last activity 2026-07-21

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/data-wise/rmediation on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Research and citation (1)
CITATION.cff
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Listed in earlier versions (1)
no longer listed · 2.12.0 to 1.1.4
Package Timeline

13 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 1.6.1Latest
    2026-07-22 · current release · diff ↗
  • 1.5.0
    2026-06-20 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.3.0
    2025-11-20 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2.2
    2023-05-12 · diff ↗
  • 1.2.1
    2023-05-03 · diff ↗
  • unarchivedReturned to CRAN
    2023-05-03
  • R
    R 4.3.0 released · 2023-04-21
  • archivedRemoved from CRAN
    2022-10-03
    check issues were not corrected despite reminders
  • 1.2.0
    2022-07-09 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
Show 19 earlier events
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 1.1.4
    2016-03-14 · diff ↗
  • archivedRemoved from CRAN
    2015-10-29
    check problems were not corrected despite reminders
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 1.1.3
    2014-03-07 · diff ↗
  • 1.1.2
    2013-09-12 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • R
    R 2.15.0 released · 2012-03-30
  • R
    R 2.14.0 released · 2011-10-31
  • 1.1
    2011-10-10 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • 1.0
    2011-02-08 · diff ↗
  • 2.12.1
    2010-11-21 · diff ↗
  • R
    R 2.12.0 released · 2010-10-15
  • 2.12.0
    2010-07-02
  • R
    R 2.11.0 released · 2010-04-22

Package metadata

First published
2011-02-08
Total releases
13 / 15 yrs
License
GPL (>= 3) | file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
0.9 KB / 1 file
Download size
1.7 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →