powered by
plot.coxreg(x, fn = c("cum", "surv", "log", "loglog"), fig = TRUE, xlim=NULL, ylim=NULL, main=NULL, xlab="Duration", ylab="", new.data = x$means, ...)
coxreg
link{coxreg}
c(0, 1)
plot.default
plot.hazdata
time0 <- numeric(50) group <- c(rep(0, 25), rep(1, 25)) time1 <- rexp( 50, exp(group) ) event <- rep(1, 50) fit <- coxreg(Surv(time0, time1, event) ~ strata(group)) plot.coxreg(fit)
Run the code above in your browser using DataLab