calculate_and_add_median_times: Calculate median survival times and add to labels

View source: R/ggkmcif3.R

calculate_and_add_median_timesR Documentation

Calculate median survival times and add to labels

Description

Calculate median survival times and add to labels

Usage

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


reportRmd documentation built on March 20, 2026, 5:06 p.m.