2
lavaan
のSEMモデルのsemPlot
を使用して、異なるノードに異なるサイズを設定する方法を知りました。semPaths - Lavaan SEMの異なるサイズノード
library(lavaan)
library(semPlot)
model <- '
# measurement model
ind60 =~ x1 + x2 + x3
dem60 =~ y1 + y2 + y3 + y4
dem65 =~ y5 + y6 + y7 + y8
# regressions
dem60 ~ ind60
dem65 ~ ind60 + dem60
# residual correlations
y1 ~~ y5
y2 ~~ y4 + y6
y3 ~~ y7
y4 ~~ y8
y6 ~~ y8
'
fit <- sem(model, data=PoliticalDemocracy)
は最適ではありませんが、あなたは手動でサイズを変更することができます:semPlotを割り当てる:
フルSEM分析は、ここでhttps://github.com/pachamaltese/thesis
私も私のブログのための2つの部分で完全なチュートリアルを書いている 'sの< - $ graphAttributes $ Nodes $ height [1:3] < - 8; s $ graphAttributes $ Nodes $ width [1:3] < - 8; plot(これは、 s) ' – user20650