ComeçarComece de graça

Build Text Speed Model

Let's practice defining models. Remember to name your latent variables with a name that is not in your current dataset. However, manifest variables should be column names from your dataset.

Use the HolzingerSwineford1939 dataset to create a new model of textual speed with the variables x4, x5, and x6, which represent reading comprehension and understanding word meaning. x7, x8, and x9 represent speed counting and addition. The model will have one latent variable that predicts scores on these six manifest variables.

Este exercício faz parte do curso

Structural Equation Modeling with lavaan in R

Ver curso

Instruções do exercício

  • Name your model text.model.
  • Name your latent variable textspeed.
  • Use variables x4, x5, x6, x7, x8, and x9 as the manifest variables.

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Load the lavaan library
library(lavaan)

# Look at the dataset
data(HolzingerSwineford1939)
head(HolzingerSwineford1939[ , 7:15])

# Define your model specification
___ <- ___
Editar e executar o código