This function takes a survival object generated from a call to
survfit
and creates a table in a 'stepped' format
suitable for external plotting, such as in Excel.
Arguments
- KM
A survival object generated from a call to
survfit
. TheKM
object should be of class "survfit" and should represent a single-arm survival analysis (e.g.Surv(time, status) ~ 1
).- add_time_0
Optional. Uses survival::survfit0 to add the point for a starting time (time 0) to a survfit object's elements. This is useful for plotting. Default is TRUE.