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

Compare Two Models

In the last exercises, you created two models of the epi, and these models have been loaded for you.

The original model epi.model and the updated model with the modified path epi.model1 can now be compared using the anova() function to determine if the change in fit indices was a large change. We can use the anova() function because these models are nested, which means they are the same manifest variables with different parameters.

Bu egzersiz

Structural Equation Modeling with lavaan in R

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

Egzersiz talimatları

  • Analyze both models with the cfa() function and the epi dataset.
  • Use the anova() function to compare these models.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Analyze the original model
epi.fit <- cfa(model = ___, data = ___)

# Analyze the updated model
epi.fit1 <- cfa(model = ___, data = ___)

# Compare those models
anova(___, ___)
Kodu Düzenle ve Çalıştır