Creates table of univariate summary statistics for time-to-event endpoints
Please use tbl_survfit.
Function takes a
survfit
object as an argument, and provides a
formatted summary of the results
tbl_survival(x, ...) ## S3 method for class 'survfit' tbl_survival( x, times = NULL, probs = NULL, label = ifelse(is.null(probs), "{time}", "{prob*100}%"), level_label = "{level}, N = {n}", header_label = NULL, header_estimate = NULL, failure = FALSE, missing = "-", estimate_fun = NULL, ... )
x |
A survfit object with a no stratification
(e.g. |
... |
Not used |
times |
Numeric vector of times for which to return survival probabilities. |
probs |
Numeric vector of probabilities with values in (0,1) specifying the survival quantiles to return |
label |
String defining the label shown for the time or prob column.
Default is |
level_label |
Used when survival results are stratified.
It is a string defining the label shown. The input uses
glue::glue notation to convert the string into a label.
The default is |
header_label |
String to be displayed as column header.
Default is |
header_estimate |
String to be displayed as column header of the Kaplan-Meier
estimate. Default is |
failure |
Calculate failure probabilities rather than survival probabilities.
Default is |
missing |
String indicating what to replace missing confidence
limits with in output. Default is |
estimate_fun |
Function used to format the estimate and confidence
limits. The default is |
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.