View source: R/calc_surv_table.R
calc_surv_table | R Documentation |
Takes a survfit
object and returns a tibble with median and confidence
intervals.
calc_surv_table(fit, all_group_name = "All subjects")
fit |
|
all_group_name |
String name for all records. Default is "All subjects". |
A tibble
library(survival)
library(dplyr)
head(aml)
fit <- survival::survfit(
survival::Surv(time = time,
event = status) ~ x,
data = aml)
calc_surv_table(fit)
fit <- survival::survfit(
survival::Surv(time = time,
event = status) ~ 1,
data = aml)
calc_surv_table(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.