I am wondering if such a MIMIC model plus a moderated factor loading could be estimated in lavaan as well
not sure if Lavaan offers something similar to the MODEL CONSTRAINT' command)?
HS.model <- '
visual =~ x1 + b1*x2 + x3
textual =~ x4 + b2*x5 + x6
speed =~ x7 + b3*x8 + x9
## model constraints
2*b1 == b3
b2 - b3 == 0
'
fit <- cfa(HS.model, data=HolzingerSwineford1939)
summary(fit)
I love the lavaan package. Thank you Yves, Terrence, and others for developing it.
I was wondering whether you have interest/plans to extend lavaaan to allow moderated nonlinear factor analysis? This would be particularly helpful for testing measurement invariance across many different factors simultaneously, including continuous factors. The regularization approach proposed by Bauer et al. (2020) seems to be a promising approach for testing for measurement invariance across multiple factors.
Bauer, D. J., Belzak, W. C. M., & Cole, V. T. (2020). Simplifying the assessment of measurement invariance over multiple background variables: Using regularized moderated nonlinear factor analysis to detect differential item functioning. Structural Equation Modeling, 27(1), 43–55. https://doi.org/10.1080/10705511.2019.1642754
Bauer, D. J. (2017). A more general model for testing measurement invariance and differential item functioning. Psychological Methods, 22(3), 507–526. https://doi.org/10.1037/met0000077
I do not really understand why the effects have to be the same