modsem
1.0.21Latent Interaction (and Moderation) Analysis in Structural Equation Models (SEM)
Overview
Estimation of interaction (i.e., moderation) effects between latent variables in structural equation models (SEM). The supported methods are: The constrained approach (Algina & Moulder, 2001). The unconstrained approach (Marsh et al., 2004). The residual centering approach (Little et al., 2006). The double centering approach (Lin et al., 2010). The latent moderated structural equations (LMS) approach (Klein & Moosbrugger, 2000). The quasi-maximum likelihood (QML) approach (Klein & Muthén, 2007) The constrained- unconstrained, residual- and double centering- approaches are estimated via 'lavaan' (Rosseel, 2012), whilst the LMS- and QML- approaches are estimated via 'modsem' it self. Alternatively model can be estimated via 'Mplus' (Muthén & Muthén, 1998-2017). References: Algina, J., & Moulder, B. C. (2001). doi:10.1207/S15328007SEM0801_3. "A note on estimating the Jöreskog-Yang model for latent variable interaction using 'LISREL' 8.3." Klein, A., & Moosbrugger, H. (2000). doi:10.1007/BF02296338. "Maximum likelihood estimation of latent interaction effects with the LMS method." Klein, A. G., & Muthén, B. O. (2007). doi:10.1080/00273170701710205. "Quasi-maximum likelihood estimation of structural equation models with multiple interaction and quadratic effects." Lin, G. C., Wen, Z., Marsh, H. W., & Lin, H. S. (2010). doi:10.1080/10705511.2010.488999. "Structural equation models of latent interactions: Clarification of orthogonalizing and double-mean-centering strategies." Little, T. D., Bovaird, J. A., & Widaman, K. F. (2006). doi:10.1207/s15328007sem1304_1. "On the merits of orthogonalizing powered and product terms: Implications for modeling interactions among latent variables." Marsh, H. W., Wen, Z., & Hau, K. T. (2004). doi:10.1037/1082-989X.9.3.275. "Structural equation models of latent interactions: evaluation of alternative estimation strategies and indicator construction." Muthén, L.K. and Muthén, B.O. (1998-2017). "'Mplus' User’s Guide. Eighth Edition." https://www.statmodel.com/. Rosseel Y (2012). doi:10.18637/jss.v048.i02. "'lavaan': An R Package for Structural Equation Modeling."
Install
Health
- OK2026-08-0513 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0812 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 3 earlier snapshots
- NOTE2026-04-2212 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-1811 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-1012 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 74%
- Documented parameters
- 100%
- Return-value docs
- 75%
- References docs
- 2%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Repository practices
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/kss2k/modsem on 2026-08-16.
Dependencies
Code & Tests
Datasets
People & History
26 releases. Pick two to compare their code metrics. R releases are shown for context.
- 1.0.21Latest
- 1.0.202026-06-01 · diff ↗
- 1.0.192026-04-30 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 1.0.182026-03-28 · diff ↗
- 1.0.172026-02-24 · diff ↗
- 1.0.162026-01-23 · diff ↗
- 1.0.152025-12-22 · diff ↗
- 1.0.142025-11-18 · diff ↗
- 1.0.132025-10-07 · diff ↗
- 1.0.122025-08-27 · diff ↗
- 1.0.112025-07-22 · diff ↗
- 1.0.102025-06-13 · diff ↗
- 1.0.92025-06-11 · diff ↗
- 1.0.82025-04-30 · diff ↗
- RR 4.5.0 released · 2025-04-11
Show 14 earlier events
- 1.0.72025-03-27 · diff ↗
- 1.0.62025-01-20 · diff ↗
- 1.0.52024-12-16 · diff ↗
- 1.0.42024-11-15 · diff ↗
- 1.0.32024-09-23 · diff ↗
- 1.0.22024-08-17 · diff ↗
- 1.0.12024-07-07 · diff ↗
- 0.1.42024-06-02 · diff ↗
- 0.1.32024-05-27 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.1.22024-04-17 · diff ↗
- 0.1.12024-04-15 · diff ↗
- 0.1.02024-03-23
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2024-03-23
- Total releases
- 26 / 2 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 865 KB / 6 files
- Download size
- 2.0 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("modsem")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.