The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

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 and mediated moderation models. Tests indirect effects with the Sobel, Delta, Monte-Carlo, and bootstrap methods or, for Bayesian models, with posterior summaries and equal-tailed or highest density credible intervals. Reports the effect size measures RIT, RID, and Upsilon of Lachowicz, Preacher and Kelley (2018) <doi:10.1037/met0000165>. Results can be summarized, extracted with standard methods such as summary(), coef() and confint(), and plotted.

Version: 1.1.0
Depends: R (≥ 4.1.0)
Imports: lavaan, mvtnorm, ggplot2, stats
Suggests: blavaan, cSEM, HDInterval, modsem, testthat (≥ 3.0.0)
Published: 2026-09-16
DOI: 10.32614/CRAN.package.rmedsem
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.1.0.tar.gz
Windows binaries: r-devel: rmedsem_1.1.0.zip, r-release: rmedsem_1.0.0.zip, r-oldrel: rmedsem_1.1.0.zip
macOS binaries: r-release (arm64): rmedsem_1.1.0.tgz, r-oldrel (arm64): rmedsem_1.1.0.tgz, r-release (x86_64): rmedsem_1.1.0.tgz, r-oldrel (x86_64): rmedsem_1.1.0.tgz
Old sources: rmedsem archive

Linking:

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

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.