Converts summary output from survival models (e.g., rmst2, survfit) into publication-ready strings containing median and 95% CI.

led_fun_2(fit, resp, levs)

Arguments

fit

A model object with elements n and table.

resp

Character. Label to append (e.g. "Months").

levs

Character vector of group names.

Value

A character vector with formatted survival statistics for each group.

Examples

if (FALSE) { # \dontrun{
led_fun_2(fit, "months", c("Low","High"))
} # }