Examine Political Democracy
For this final exercise, you will put together all the steps you've completed so far in building a one-factor model. You will examine the standardized loadings and fit indices for the political democracy model. The model was analyzed with the cfa()
function. You will now use the summary()
function with both the standardized
and fit.measures
arguments to view everything together.
In the Std.all
column for loadings, you should find that the items appear to measure political democracy well with high numbers close to one. However, when you look at the fit indices, you should find a mix of good and bad values. These results are often common and indicate that the model may fit the data, but also has room for improvement.
Este ejercicio forma parte del curso
Structural Equation Modeling with lavaan in R
Instrucciones del ejercicio
- Use the
summary()
function on yourpolitics.fit
model. - Include the argument to view both standardized loadings and fit indices.
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
# Load the lavaan library
library(lavaan)
# Load the data and define model
data(PoliticalDemocracy)
politics.model <- 'poldemo60 =~ y1 + y2 + y3 + y4'
# Analyze the model with cfa()
politics.fit <- cfa(model = politics.model, data = PoliticalDemocracy)
# Summarize the model