rmedsem: Statistical Mediation Analysis for SEMs

Conducts mediation analysis for structural equation models (SEM) estimated with 'lavaan', 'blavaan', 'cSEM', or 'modsem'. Implements the Baron and Kenny (1986) <doi:10.1037/0022-3514.51.6.1173> and Zhao, Lynch & Chen (2010) <doi:10.1086/651257> approaches to determine the presence and type of mediation. Supports covariance-based SEM, partial least squares SEM, Bayesian SEM, and moderated mediation models. Reports indirect effects with standard errors from Sobel, Delta, Monte-Carlo, and bootstrap methods, along with effect size measures (RIT, RID).

Version: 1.0.0
Depends: R (≥ 4.1.0)
Imports: lavaan, mvtnorm, ggplot2, dplyr, purrr, stats
Suggests: blavaan, boot, cSEM, HDInterval, modsem, semPlot, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-03-16
DOI: 10.32614/CRAN.package.rmedsem (may not be active yet)
Author: Mehmet Mehmetoglu ORCID iD [aut], Matthias Mittner ORCID iD [aut, cre], Kjell Slupphaug ORCID iD [aut]
Maintainer: Matthias Mittner <matthias.mittner at uit.no>
BugReports: https://github.com/ihrke/rmedsem/issues
License: MIT + file LICENSE
URL: https://github.com/ihrke/rmedsem, https://ihrke.github.io/rmedsem/
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: rmedsem results

Documentation:

Reference manual: rmedsem.html , rmedsem.pdf

Downloads:

Package source: rmedsem_1.0.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=rmedsem to link to this page.