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

Three-Factor Model with Zero Correlation

In this exercise, you will use the Eysenck Personality Inventory dataset from the psychTools library to create a three-factor model of personality. This inventory includes 57 questions that measure extraversion, neuroticism, and lying.

Let's create a three factor model using the latent variables: extraversion, neuroticism, and lying with four manifest variables on each item. Remember when you create multiple latent variables, these endogenous variables are automatically correlated. Set the correlation between the extraversion latent variable and neuroticism latent variable to zero, by using the ~~ in model specification code.

Bu egzersiz

Structural Equation Modeling with lavaan in R

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Load the library and data
library(psych)
data(epi)

# Specify a three-factor model with one correlation set to zero
epi.model <- 'extraversion =~ V1 + V3 + V5 + V8
neuroticism =~ V2 + V4 + V7 + V9
lying =~ ___
___'
Kodu Düzenle ve Çalıştır