Aliases: glance.survdiff
Keywords:
### ** Examples # feel free to ignore the following line—it allows {broom} to supply # examples without requiring the model-supplying package to be installed. if (requireNamespace("survival", quietly = TRUE)) { # load libraries for models and data library(survival) # fit model s <- survdiff( Surv(time, status) ~ pat.karno + strata(inst), data = lung ) # summarize model fit with tidiers tidy(s) glance(s) }
# A tibble: 1 × 3 statistic df p.value <dbl> <dbl> <dbl> 1 21.4 7 0.00326