1 Star 1 Fork 0

雨天隐形人/Medical related R language procedures

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
结构方程.R 508 Bytes
一键复制 编辑 原始数据 按行查看 历史
shanjiayu1 提交于 2023-12-03 21:37 . 23.12.3
library(lavaan)
library(semPlot)
library(haven)
install.packages("lavaan")
"C:\Users\99405\Desktop\cfa.dta"
xueling_qingchun_gai<- read_dta("C:/Users/99405/Desktop/cfa.dta")
model <- '#measurement model 测量模型
DPD =~ a1 + a2 + a3
SEC =~ a4 + a5 + a6 + a7 + a8 + a9 + a10
MRH =~ a11 + a12 + a13 + a14
MPC =~ a15 + a16 + a17
IBO =~ a18 + a19 + a20
ABP =~ a21 + a22 + a23'
fit <- cfa(model, data = xueling_qingchun_gai)
summary(fit, standardized = TRUE, fit.measures = TRUE, rsquare = TRUE)
varTable(fit)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
R
1
https://gitee.com/sjy12345/lover.git
[email protected]:sjy12345/lover.git
sjy12345
lover
Medical related R language procedures
master

搜索帮助