Package: modsem 1.0.6

Kjell Solem Slupphaug

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 '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], Mehmet Mehmetoglu [ctb], Matthias Mittner [ctb]

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

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

Peer review:

Pkgdown site:https://modsem.org

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

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

openblascppopenmp

5.48 score 55 scripts 345 downloads 24 exports 92 dependencies

Last updated 11 days agofrom:e7407b7ba3. Checks:2 OK. Indexed: no.

TargetResultLatest binary
Doc / VignettesOKJan 20 2025
R-4.5-linux-x86_64OKJan 20 2025

Exports:coef_modsem_dacompare_fitdefault_settings_dadefault_settings_piextract_lavaanfit_modsem_daget_pi_dataget_pi_syntaxmodsemmodsem_damodsem_inspectmodsem_mplusmodsem_pimodsemifymultiplyIndicatorsCppparameter_estimatesplot_interactionplot_jnplot_surfacesimple_slopesstandardized_estimatestrace_pathvar_interactionsvcov_modsem_da

Dependencies:askpassbackportsbase64encBHbootbslibcachemcheckmateclicodacolorspacecpp11crosstalkcurldata.tabledigestdplyrevaluatefansifarverfastDummiesfastGHQuadfastmapfontawesomefsgenericsggplot2gluegsubfngtablehighrhtmltoolshtmlwidgetshttrisobandjquerylibjsonliteknitrlabelinglaterlatticelavaanlazyevallifecyclemagrittrMASSMatrixmemoisemgcvmimemnormtMplusAutomationmunsellmvnfastmvtnormnlmenumDerivopensslpanderpbivnormpillarpkgconfigplotlyplyrpromisesprotopurrrquadprogR6rappdirsRColorBrewerRcppRcppArmadillorlangrmarkdownsassscalesstringistringrsystexregtibbletidyrtidyselecttinytexutf8vctrsviridisLitewithrxfunxtableyaml

customizing interaction terms

Rendered fromcustomizing.Rmdusingknitr::rmarkdownon Jan 20 2025.

Last update: 2024-11-15
Started: 2024-06-03

higher order interactions

Rendered fromhigher_order_interactions.Rmdusingknitr::rmarkdownon Jan 20 2025.

Last update: 2024-11-15
Started: 2024-11-15

interaction effects between endogenous variables

Rendered frominteraction_two_etas.Rmdusingknitr::rmarkdownon Jan 20 2025.

Last update: 2024-11-15
Started: 2024-07-08

LMS and QML approaches

Rendered fromlms_qml.Rmdusingknitr::rmarkdownon Jan 20 2025.

Last update: 2024-11-15
Started: 2024-06-03

methods

Rendered frommethods.Rmdusingknitr::rmarkdownon Jan 20 2025.

Last update: 2024-11-15
Started: 2024-06-03

modsem

Rendered frommodsem.Rmdusingknitr::rmarkdownon Jan 20 2025.

Last update: 2024-11-15
Started: 2024-06-03

observed variables in the LMS- and QML approach

Rendered fromobserved_lms_qml.Rmdusingknitr::rmarkdownon Jan 20 2025.

Last update: 2024-11-15
Started: 2024-07-08

plotting interaction effects

Rendered fromplot_interactions.Rmdusingknitr::rmarkdownon Jan 20 2025.

Last update: 2025-01-20
Started: 2024-06-03

quadratic effects

Rendered fromquadratic.Rmdusingknitr::rmarkdownon Jan 20 2025.

Last update: 2024-11-15
Started: 2024-06-03

simple slopes analysis

Rendered fromsimple_slopes.Rmdusingknitr::rmarkdownon Jan 20 2025.

Last update: 2025-01-20
Started: 2025-01-20

using lavaan functions

Rendered fromlavaan.Rmdusingknitr::rmarkdownon Jan 20 2025.

Last update: 2024-08-18
Started: 2024-06-03

Readme and manuals

Help Manual

Help pageTopics
Wrapper for coefcoef_modsem_da
compare model fit for qml and lms modelscompare_fit
default arguments fro LMS and QML approachdefault_settings_da
default arguments for product indicator approachesdefault_settings_pi
extract lavaan object from modsem object estimated using product indicatorsextract_lavaan
Fit measures for QML and LMS modelsfit_modsem_da
Get data with product indicators for different approachesget_pi_data
Get 'lavaan' syntax for product indicator approachesget_pi_syntax
Jordan subset of PISA 2006 datajordan
Estimate interaction effects in structural equation models (SEMs)modsem
Interaction between latent variables using lms and qml approachesmodsem_da
Inspect model informationmodsem_inspect
Estimation latent interactions through mplusmodsem_mplus
Interaction between latent variables using product indicatorsmodsem_pi
Generate parameter table for 'lavaan' syntaxmodsemify
Multiply indicatorsmultiplyIndicatorsCpp
oneIntoneInt
Extract parameterEstimates from an estimated modelparameter_estimates
Plot Interaction Effects in a SEM Modelplot_interaction
Plot Interaction Effect Using the Johnson-Neyman Techniqueplot_jn
Plot Surface for Interaction Effectsplot_surface
Get the simple slopes of a SEM modelsimple_slopes
Get standardized estimatesstandardized_estimates
summary for modsem objectssummary.modsem_da summary.modsem_mplus summary.modsem_pi
TPBTPB
TPB_1SOTPB_1SO
TPB_2SOTPB_2SO
TPB_UKTPB_UK
Estimate formulas for (co-)variance paths using Wright's path tracing rulestrace_path
Extract or modify parTable from an estimated model with estimated variances of interaction termsvar_interactions
Wrapper for vcovvcov_modsem_da