| h_tbl_median_surv {tern} | R Documentation | 
Helper function for survival estimations
Description
Transform a survival fit to a table with groups in rows characterized by N, median and confidence interval.
Usage
h_tbl_median_surv(fit_km, armval = "All")
Arguments
fit_km | 
 (  | 
armval | 
 (  | 
Value
A summary table with statistics N, Median, and XX% CI (XX taken from fit_km).
Examples
library(dplyr)
library(survival)
adtte <- tern_ex_adtte %>% filter(PARAMCD == "OS")
fit <- survfit(
  formula = Surv(AVAL, 1 - CNSR) ~ ARMCD,
  data = adtte
)
h_tbl_median_surv(fit_km = fit)
[Package tern version 0.9.5 Index]