Skip to content

RMediation

Mediation Analysis Confidence Intervals

v1.5.0 · Jun 19, 2026 · GPL (>= 3) | file LICENSE

Description

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>.

Downloads

CRAN

685

Last 30 days

4631st

1.8K

Last 90 days

10.9K

Last year

Trend: +31.5% (30d vs prior 30d)

r2u CRAN

13

Last 30 days

38

Last 90 days

126

Last year

Trend: +44.4% (30d vs prior 30d)

autoCRAN

3

Last 7 days

9

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘modelr’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-oldrel-windows-x86_64

package dependencies

Package required but not available: 'OpenMx'

See section 'The DESCRIPTION file' in the 'Writing R Extensions'
manual.

Code

Code metrics have not been computed for this package yet.

Dependency Network

Dependencies Reverse dependencies checkmate grDevices (>= 4.1.0) lavaan MASS S7 RMediation

Version History

11 tracked
updated 1.5.0 ← 1.3.0 diff Jun 20, 2026
new 1.3.0 Mar 10, 2026
updated 1.3.0 ← 1.2.2 diff Nov 19, 2025
updated 1.2.2 ← 1.2.1 diff May 11, 2023
updated 1.2.1 ← 1.2.0 diff May 2, 2023
updated 1.2.0 ← 1.1.4 diff Jul 8, 2022
updated 1.1.4 ← 1.1.3 diff Mar 13, 2016
updated 1.1.3 ← 1.1.2 diff Mar 6, 2014
updated 1.1.2 ← 1.1 diff Sep 11, 2013
updated 1.1 ← 1.0 diff Oct 9, 2011
new 1.0 Feb 7, 2011