ComeçarComece de graça

Check Model Variance

In order to evaluate your three-factor model of the epi, you can examine the variance of the manifest variables to check for potential problems with the model. Very large variances can indicate potential issues; however, this value should be compared to the original scale of the data.

Use the var() function on V1 to compare the variance of the original manifest variable to the estimated variance in your summary output. The libraries, model, and datasets have been loaded for you.

Este exercício faz parte do curso

Structural Equation Modeling with lavaan in R

Ver curso

Instruções do exercício

  • Use var() on V1 to calculate the variance of the original manifest variable in the epi dataset.
  • Compare this value to the V1 variance estimate of the model.

Exercício interativo prático

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

# Run the model
epi.fit <- cfa(model = epi.model, data = epi)

# Examine the output 
summary(epi.fit, standardized = TRUE, fit.measures = TRUE)

# Calculate the variance of V1 in the epi data
___
Editar e executar o código