Skip to content

modsem

Latent Interaction (and Moderation) Analysis in Structural Equation Models (SEM)

v1.0.18 · Mar 27, 2026 · MIT + file LICENSE

Description

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

Downloads

767

Last 30 days

4689th

2.5K

Last 90 days

8.8K

Last year

Trend: -12.2% (30d vs prior 30d)

CRAN Check Status

2 NOTE
12 OK
Show all 14 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-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
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 details (2 non-OK)
NOTE r-oldrel-macos-arm64

installed package size

installed size is 10.0Mb
  sub-directories of 1Mb or more:
    libs   6.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 10.1Mb
  sub-directories of 1Mb or more:
    libs   7.1Mb

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 10.0Mb
  sub-directories of 1Mb or more:
    libs   6.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 10.1Mb
  sub-directories of 1Mb or more:
    libs   7.1Mb

Reverse Dependencies (2)

imports

suggests

Dependency Network

Dependencies Reverse dependencies Rcpp purrr stringr lavaan rlang MplusAutomation nlme dplyr mvnfast fastGHQuad mvtnorm ggplot2 plotly Deriv MASS +3 more dependencies plssem rmedsem modsem

Version History

updated 1.0.18 ← 1.0.17 diff Mar 28, 2026
new 1.0.17 Mar 10, 2026
updated 1.0.17 ← 1.0.16 diff Feb 23, 2026
updated 1.0.16 ← 1.0.15 diff Jan 22, 2026
updated 1.0.15 ← 1.0.14 diff Dec 21, 2025
updated 1.0.14 ← 1.0.13 diff Nov 17, 2025
updated 1.0.13 ← 1.0.12 diff Oct 6, 2025
updated 1.0.12 ← 1.0.11 diff Aug 26, 2025
updated 1.0.11 ← 1.0.10 diff Jul 21, 2025
updated 1.0.10 ← 1.0.9 diff Jun 12, 2025
updated 1.0.9 ← 1.0.8 diff Jun 10, 2025
updated 1.0.8 ← 1.0.7 diff Apr 29, 2025
updated 1.0.7 ← 1.0.6 diff Mar 26, 2025
updated 1.0.6 ← 1.0.5 diff Jan 19, 2025
updated 1.0.5 ← 1.0.4 diff Dec 15, 2024
updated 1.0.4 ← 1.0.3 diff Nov 14, 2024
updated 1.0.3 ← 1.0.2 diff Sep 22, 2024
updated 1.0.2 ← 1.0.1 diff Aug 16, 2024
updated 1.0.1 ← 0.1.4 diff Jul 6, 2024
updated 0.1.4 ← 0.1.3 diff Jun 1, 2024