powered by
Creates a formatted event-free-survival from a survfit object and a specified time point.
paste_efs(x, times, percent.sign = TRUE, digits = 1)
A named character vector of event-free survival(s).
A survfit object. The survival model.
survfit
A numeric. Indicates time-points of interest. Units are whatever was used to create the survival fit.
A logical. Indicates percent sign should be printed for frequencies.
Integer. Number of digits to round to.
library(survival) fit <- survfit(Surv(time, status) ~ 1, data = diabetic) paste_efs(fit, c(1, 3, 5))
Run the code above in your browser using DataLab