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

Analyze a Latent Heywood Case

A local animal shelter has designed a survey to measure the impact of their Adopt Me program. Viewers rated each dog's picture, background story, and other characteristics to indicate the "adoptableness" of each animal.

The adoptsurvey data contains the six items they rated including pictures, background, loveskids that measure a "good story" latent variable, while energy, wagstail, playful measure an "in person" latent variable. You will build a two-factor model of their survey and examine it for Heywood cases. The lavaan library has been loaded for you.

Bu egzersiz

Structural Equation Modeling with lavaan in R

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

Egzersiz talimatları

  • The goodstory latent is measured by pictures, background, and loveskids.
  • The inperson latent is measured by energy, wagstail, and playful.
  • Analyze the two-factor model with the cfa() function.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Look at the data
head(adoptsurvey)

# Build the model
adopt.model <- 'goodstory ___
inperson ___'

# Analyze the model
adopt.fit <- cfa(model = ___, data = ___)
Kodu Düzenle ve Çalıştır