surv_summary | R Documentation |
Prints and returns a list containing the survival curve, confidence limits
for the curve, and other information which can be more useful than the
acutal return value of survival:::print.summary.survfit
.
surv_summary(object, digits = 3L, locf = FALSE, ...)
object |
a |
digits |
number of digits to use in printing numbers |
locf |
logical; if |
... |
additional arguments passed to
|
A list with survival:::print.summary.survfit
matrices for each
strata, i.e., the output printed.
survfit
; print.summary.survfit
library('survival')
fit1 <- survfit(coxph(Surv(time, status) ~ strata(I(age > 60)), cancer))
surv_summary(fit1, times = c(0, 100, 200))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.