当前位置:网站首页>R language various logistic regression common conditions iptw

R language various logistic regression common conditions iptw

2022-06-21 18:40:00 Illegal account 247188

#【 Ordinary logistic Return to 】
library(reportReg)
Match$SYPL <- as.factor(Match$SYPL)
model0=glm(zq101~SYPL,data=Match,family=binomial(),)
reportReg(model0)
summary(model0)

#【IPTW Of logistic Return to 】
data$SYPL <- as.factor(data$SYPL)
model1=glm(zq101~SYPL,data=data,family=binomial(),weights=mw1)
reportReg(model1)

#【PSM】 Of 【 Conditions logistic Return to 】
??clogit
library(survival)
model2 <- clogit(zq101~SYPL + strata(group), data=Match)
reportReg(model2)
原网站

版权声明
本文为[Illegal account 247188]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206211659281995.html