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.
Diese Übung ist Teil des Kurses
Structural Equation Modeling with lavaan in R
Anleitung zur Übung
- Use
var()onV1to calculate the variance of the original manifest variable in theepidataset. - Compare this value to the
V1variance estimate of the model.
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# 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
___