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
)

Arguments

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