h_tbl_median_surv | R Documentation |
Transform a survival fit to a table with groups in rows characterized by N, median and confidence interval.
h_tbl_median_surv(fit_km, armval = "All")
fit_km |
( |
armval |
( |
A summary table with statistics N
, Median
, and XX% CI
(XX
taken from fit_km
).
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.