modsem1.0.12 package

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

bootstrap_modsem

Bootstrap a modsem Model

centered_estimates

Get Centered Interaction Term Estimates

colorize_output

Capture, colorise, and emit console text

compare_fit

compare model fit for modsem models

default_settings_da

default arguments fro LMS and QML approach

default_settings_pi

default arguments for product indicator approaches

estimate_h0

Estimate baseline model for modsem models

extract_lavaan

extract lavaan object from modsem object estimated using product indic...

fit_modsem_da

Fit measures for QML and LMS models

get_pi_data

Get data with product indicators for different approaches

get_pi_syntax

Get lavaan syntax for product indicator approaches

modsem_coef

Wrapper for coef

modsem_da

Interaction between latent variables using LMS and QML approaches

modsem_inspect

Inspect model information

modsem_mimpute

Estimate a modsem model using multiple imputation

modsem_mplus

Estimation latent interactions through Mplus

modsem_nobs

Wrapper for nobs

modsem_pi

Interaction between latent variables using product indicators

modsem_predict

Predict From modsem Models

modsem_vcov

Wrapper for vcov

modsem-package

modsem: Latent Interaction (and Moderation) Analysis in Structural Equ...

modsem

Estimate interaction effects in structural equation models (SEMs)

modsemify

Generate parameter table for lavaan syntax

parameter_estimates

Extract parameterEstimates from an estimated model

plot_interaction

Plot Interaction Effects in a SEM Model

plot_jn

Plot Interaction Effect Using the Johnson-Neyman Technique

plot_surface

Plot Surface for Interaction Effects

relcorr_single_item

Reliability‑Corrected Single‑Item SEM

set_modsem_colors

Define or disable the color theme used by modsem

simple_slopes

Get the simple slopes of a SEM model

standardize_model

Standardize a fitted modsem_da model

standardized_estimates

Get Standardized Estimates

summarize_partable

Summarize a parameter table from a modsem model.

summary

summary for modsem objects

trace_path

Estimate formulas for (co-)variance paths using Wright's path tracing ...

twostep

Estimate interaction effects in structural equation models (SEMs) usin...

var_interactions

Extract or modify parTable from an estimated model with estimated vari...

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

  • Maintainer: Kjell Solem Slupphaug
  • License: MIT + file LICENSE
  • Last published: 2025-08-27