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.
This exercise is part of the course
Structural Equation Modeling with lavaan in R
Exercise 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.
Hands-on interactive exercise
Have a go at this exercise by completing this sample 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
___