Build a Multi-Factor Model
Another way to improve our text-speed model would be to create a two-factor model with text
and speed
as latent variables, rather than split the model into two one-factor models. In this exercise, write the model specification code for a two-factor model.
If you want to view the dataset to see the columns, you can use head(HolzingerSwineford1939)
.
Este exercício faz parte do curso
Structural Equation Modeling with lavaan in R
Instruções do exercício
- Name your model
twofactor.model
. - Use
x4
,x5
, andx6
to create atext
latent variable. - Use
x7
,x8
, andx9
to create aspeed
latent variable.
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
# Create a two-factor model of text and speed variables
twofactor.model <- ____