search for: survsex

Displaying 1 result from an estimated 1 matches for "survsex".

Did you mean: survex
2011 Jun 16
0
coxph: cumulative mortality hazard over time with associated confidence intervals
Dear R-users, I computed a simple coxph model and plotted survival over time with associated confidence intervals for 2 covariate levels (males and females). M1 <- coxph(survobject~sex, data=surv) M1 survsex <- survfit(survobject~sex,data=surv) summary(survsex) plot(survsex, conf.int=T, col=c("black","red"), lty = c(1,2), lwd=c(1,2), xlab="Time", ylab="Survival probability") legend(10, 0.2, c("males","females"), col = c("black",&q...