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.
Cet exercice fait partie du cours
Structural Equation Modeling with lavaan in R
Instructions
- Use
var()
onV1
to calculate the variance of the original manifest variable in theepi
dataset. - Compare this value to the
V1
variance estimate of the model.
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# 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
___