1. Learn
  2. /
  3. Courses
  4. /
  5. Structural Equation Modeling with lavaan in R

Exercise

Select Specific Fit Indices

You can also compare models by using the AIC or ECVI fit indices, rather than the anova() function. These fit indices are very useful if your models include different manifest variables. When comparing sets of AIC or ECVI values, the best model would have the smallest fit index. The saved models from the previous exercise have been loaded for you.

Instructions

100 XP
  • Use fitmeasures() to calculate the fit indices for each model separately.
  • Select only the aic and ecvi fit indices to shorten the output.