{"version":"1.0","blog_url":"https://ides.hatenablog.com/","url":"https://ides.hatenablog.com/entry/2020/08/14/135114","categories":["R","lavaan","\u56e0\u5b50\u5206\u6790","\u69cb\u9020\u65b9\u7a0b\u5f0f\u30e2\u30c7\u30ea\u30f3\u30b0","\u8a08\u91cf"],"provider_url":"https://hatena.blog","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fides.hatenablog.com%2Fentry%2F2020%2F08%2F14%2F135114\" title=\"lavaan\u3067\u9806\u5e8f\u30ab\u30c6\u30b4\u30ea\u30ab\u30eb\u56e0\u5b50\u5206\u6790[R] - \u4e95\u51fa\u8349\u5e73\u306e\u7814\u7a76\u30ce\u30fc\u30c8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","height":"190","author_name":"iDES","author_url":"https://blog.hatena.ne.jp/iDES/","width":"100%","type":"rich","title":"lavaan\u3067\u9806\u5e8f\u30ab\u30c6\u30b4\u30ea\u30ab\u30eb\u56e0\u5b50\u5206\u6790[R]","blog_title":"\u4e95\u51fa\u8349\u5e73\u306e\u7814\u7a76\u30ce\u30fc\u30c8","description":"IPIP-NEO\u30c7\u30fc\u30bf\u306e\u547c\u3073\u51fa\u3057\u3068\u683c\u7d0d library(\"psych\") data(bfi) # IPIP-NEO\u30c7\u30fc\u30bf d1 <- bfi[1:10] # \u56e0\u5b50\u5206\u6790\u306b\u4f7f\u7528\u3059\u308b\u306e\u306f\uff11\uff5e10\u5217\u76ee\u30022\u3064\u306e\u56e0\u5b50\u306e\u307f\u3002 d1 <-na.omit(d1) # \u6b20\u640d\u5024\u306e\u3042\u308b\u30b1\u30fc\u30b9\u3092\u524a\u9664 \u30e2\u30c7\u30eb\u3068\u5b9f\u884c library(lavaan) model <- ' Ag =~ A1 + A2 + A3 + A4 + A5 Co =~ C1 + C2 + C3 + C4 + C5 ' fit <- cfa(model, d1, std.lv=TRUE, ordered=c(paste(\"A\", 1:5, sep=\"\")\u2026","published":"2020-08-14 13:51:14"}