Labels for Column Variables in Survival Duration by Subgroup Table
Source:R/survival_duration_subgroups.R
d_survival_subgroups_colvars.RdInternal function to check variables included in tabulate_survival_subgroups() and create column labels.
Arguments
- vars
-
(
character)
the name of statistics to be reported among:n_tot_events: Total number of events per group.n_events: Number of events per group.n_tot: Total number of observations per group.n: Number of observations per group.median: Median survival time.hr: Hazard ratio.ci: Confidence interval of hazard ratio.pval: p-value of the effect. Note, one of the statisticsn_totandn_tot_events, as well as bothhrandciare required.
- conf_level
(
proportion)
confidence level of the interval.- method
(
character)
p-value method for testing hazard ratio = 1.- time_unit
(
string)
label with unit of median survival time. DefaultNULLskips displaying unit.