An Introduction to Interaction Effects in SEMs using modsem

Author

Kjell S Slupphaug

Published

June 19, 2024

1 About

This is a book written using quarto. It is meant as an introduction to estimating latent interactions using the modsem package. See the repo at GitHub, and the documentation.

1.1 Usage

The modsem package allows you to use a wide variety of methods for estimating latent interactions. The modsem package is mainly a package for using different product indicator based approached, but it also allows you to use the latent moderated structural equations approach (LMS) and Quasi Maximum Likelihood (QML) approach.

To install modsem:

# Latest release version from CRAN 
install.packages("modsem")

# Latest development version from GitHub
install.packages("devtools")
devtools::install_github("kss2k/modsem", build_vignettes = TRUE)

Note: The code examples shown here will always be run using the latest release on GitHub.