BaşlayınÜcretsiz Başlayın

Compare Models

In the last exercise, you added a new parameter to control for correlated error between the information and similarity manifest variables. The fit indices appeared to improve over the original model. However, you should use the anova() function and the aic and ecvi fit indices outlined previously to help determine if model fit was significantly improved.

Bu egzersiz

Structural Equation Modeling with lavaan in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Compare wais.fit and wais.fit2 analyzed models using the anova() function.
  • Use the fitmeasures() function on both models to print out the aic and ecvi fit indices.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Compare the models
anova(___, ___)

# View the fit indices for the original model
fitmeasures(wais.fit, c(___, ___))

# View the fit indices for the updated model
fitmeasures(wais.fit2, c(___, ___))
Kodu Düzenle ve Çalıştır