| calculate_and_add_median_times | R Documentation |
Calculate median survival times and add to labels
calculate_and_add_median_times(
sfit = NULL,
fit = NULL,
stratalabs,
type = "KM",
plot.event = 1,
median.text = FALSE,
median.CI = FALSE,
median.digits = 3
)
sfit |
Survival fit object (for KM) |
fit |
CIF fit object |
stratalabs |
Strata labels |
type |
Model type |
plot.event |
Events to plot (for CIF) |
median.text |
Whether to add median text |
median.CI |
Whether to include CI |
median.digits |
Number of digits |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.