開始使用免費開始

分析顯變項的 Heywood 案例

在你回報結果後,領養小組重新設計了問卷,用兩個因子來衡量:線上故事貼文在 goodstory 中的成效,以及 inperson 面對面互動的重要性。新的資料已載入為 adoptsurvey。在本練習中,你要尋找出現在顯變項而非潛在變項上的 Heywood 案例。

本練習屬於課程

在 R 中使用 lavaan 的結構方程模型

檢視課程

練習說明

  • 使用 cfa() 函式,將兩因子模型 adopt.model 套用到更新後的資料 adoptsurvey 進行分析。
  • 在完成 cfa() 分析後,留意是否出現警告訊息。
  • 使用 summary() 函式查看哪一個顯變項有問題。

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Build the model
adopt.model <- 'goodstory =~ pictures + background + loveskids
inperson =~ energy + wagstail + playful'

# Analyze the model and include the data argument
adopt.fit <- cfa(___)

# Summarize the model to view the negative variances
編輯並執行程式碼