3. Any thing can predict 90day newonset encephalopathy? (initial tips diameter? Begininig portosystemic pressure? Post portosystemic pressure? Or changes in portosystemic pressure? Pre MELD)
fit <- glm(newen90d~beginningportosystemicpressure, subset(dat, pretipsencephalopathy==0), family="binomial" )
summary(fit)$coeff
## Estimate Std. Error z value Pr(>|z|)
## (Intercept) 6.3493124 3.4959249 1.816204 0.0693391
## beginningportosystemicpressure -0.3210636 0.1720536 -1.866068 0.0620319
wilcox.test(beginningportosystemicpressure~newen90d, subset(dat, pretipsencephalopathy==0))
##
## Wilcoxon rank sum test with continuity correction
##
## data: beginningportosystemicpressure by newen90d
## W = 83.5, p-value = 0.03753
## alternative hypothesis: true location shift is not equal to 0
t.test(beginningportosystemicpressure~newen90d, subset(dat, pretipsencephalopathy==0))
##
## Welch Two Sample t-test
##
## data: beginningportosystemicpressure by newen90d
## t = 2.3945, df = 18.982, p-value = 0.02713
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
## 0.5487573 8.1734649
## sample estimates:
## mean in group 0 mean in group 1
## 23.25000 18.88889
ggplot(subset(dat, pretipsencephalopathy==0), aes(factor(newen90d), beginningportosystemicpressure)) + geom_boxplot(width=.3) + xlab("") + ylab("") + theme_bw()
