Skip to content
RDocumentation: surv_summary
Note that this notebook was automatically generated from an RDocumentation page. It depends on the package and the example code whether this code will run without errors. You may need to edit the code to make things work.
if(!require('survminer')) {
install.packages('survminer')
library('survminer')
}
# Fit survival curves
require("survival")
fit <- survfit(Surv(time, status) ~ rx + adhere, data = colon)
# Summarize
res.sum <- surv_summary(fit, data = colon)
head(res.sum)
# Information about the survival curves
attr(res.sum, "table")