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
[aut],
Matthias Mittner
[aut, cre],
Kjell Slupphaug
[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:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=rmedsem
to link to this page.