Package: modsem 1.0.3

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

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) (temporarily unavailable) The constrained- unconstrained, residual- and double centering- approaches are estimated via 'lavaan' (Rosseel, 2012), whilst the LMS- and QML- approaches are estimated via by 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."

Authors:Kjell Solem Slupphaug [aut, cre]

modsem_1.0.3.tar.gz
modsem_1.0.3.zip(r-4.5)modsem_1.0.3.zip(r-4.4)modsem_1.0.3.zip(r-4.3)
modsem_1.0.3.tgz(r-4.4-x86_64)modsem_1.0.3.tgz(r-4.4-arm64)modsem_1.0.3.tgz(r-4.3-x86_64)modsem_1.0.3.tgz(r-4.3-arm64)
modsem_1.0.3.tar.gz(r-4.5-noble)modsem_1.0.3.tar.gz(r-4.4-noble)
modsem_1.0.3.tgz(r-4.4-emscripten)modsem_1.0.3.tgz(r-4.3-emscripten)
modsem.pdf |modsem.html
modsem/json (API)

# Install 'modsem' in R:
install.packages('modsem', repos = c('https://kss2k.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/kss2k/modsem/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:

On CRAN:

interaction-effectinteraction-effectslatent-moderated-structural-equationslavaan-syntaxlmsmoderationqmlquasi-maximum-likelihoodrlangrlanguagesemstructural-equation-modelingstructural-equation-models

21 exports 4 stars 2.90 score 66 dependencies 32 scripts 444 downloads

Last updated 2 days agofrom:58cec84e2a. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 16 2024
R-4.5-win-x86_64OKSep 16 2024
R-4.5-linux-x86_64OKSep 16 2024
R-4.4-win-x86_64OKSep 16 2024
R-4.4-mac-x86_64OKSep 16 2024
R-4.4-mac-aarch64OKSep 16 2024
R-4.3-win-x86_64OKSep 16 2024
R-4.3-mac-x86_64OKSep 16 2024
R-4.3-mac-aarch64OKSep 16 2024

Exports:coef_modsem_dacompare_fitdefault_settings_dadefault_settings_piextract_lavaanfit_modsem_daget_pi_dataget_pi_syntaxmodsemmodsem_damodsem_inspectmodsem_mplusmodsem_pimodsemifymultiplyIndicatorsCppparameter_estimatesplot_interactionstandardized_estimatestrace_pathvar_interactionsvcov_modsem_da

Dependencies:askpassbackportsBHbootcheckmateclicodacolorspacecurldata.tabledigestdplyrfansifarverfastDummiesfastGHQuadgenericsggplot2gluegsubfngtablehttrisobandjsonlitelabelinglatticelavaanlifecyclemagrittrMASSMatrixmgcvmimemnormtMplusAutomationmunsellmvnfastmvtnormnlmenumDerivopensslpanderpbivnormpillarpkgconfigplyrprotopurrrquadprogR6RColorBrewerRcppRcppArmadillorlangscalesstringistringrsystexregtibbletidyselectutf8vctrsviridisLitewithrxtable

customizing interaction terms

Rendered fromcustomizing.Rmdusingknitr::rmarkdownon Sep 16 2024.

Last update: 2024-07-26
Started: 2024-05-31

interaction effects between endogenous variables

Rendered frominteraction_two_etas.Rmdusingknitr::rmarkdownon Sep 16 2024.

Last update: 2024-07-26
Started: 2024-06-04

LMS and QML approaches

Rendered fromlms_qml.Rmdusingknitr::rmarkdownon Sep 16 2024.

Last update: 2024-09-09
Started: 2024-05-31

methods

Rendered frommethods.Rmdusingknitr::rmarkdownon Sep 16 2024.

Last update: 2024-07-26
Started: 2024-05-31

modsem

Rendered frommodsem.Rmdusingknitr::rmarkdownon Sep 16 2024.

Last update: 2024-07-26
Started: 2024-05-31

observed variables in the LMS- and QML approach

Rendered fromobserved_lms_qml.Rmdusingknitr::rmarkdownon Sep 16 2024.

Last update: 2024-09-09
Started: 2024-06-22

plotting interaction effects

Rendered fromplot_interactions.Rmdusingknitr::rmarkdownon Sep 16 2024.

Last update: 2024-06-04
Started: 2024-06-01

quadratic effects

Rendered fromquadratic.Rmdusingknitr::rmarkdownon Sep 16 2024.

Last update: 2024-07-26
Started: 2024-05-31

using lavaan functions

Rendered fromlavaan.Rmdusingknitr::rmarkdownon Sep 16 2024.

Last update: 2024-07-26
Started: 2024-05-31