Skip to content

Instantly share code, notes, and snippets.

@masaha03
Created May 4, 2012 22:12
Show Gist options
  • Save masaha03/2598063 to your computer and use it in GitHub Desktop.
Save masaha03/2598063 to your computer and use it in GitHub Desktop.
# endog.variancesは足りない誤差項を自動的に追加するオプション
model.b0 <- specifyEquations(endog.variances=TRUE)
教育年数 = b1*年齢
職業威信 = c1*年齢 + c2*教育年数
# モデルの結合
model.b2 <- combineModels(model.a2, model.b0)
# 重複しているパスの削除
model.b2 <- removeRedundantPaths(model.b2)
sem.b <- sem(model.b2, cor.1, N=685, fixed.x="年齢")
summary(sem.b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment