Labels for Column Variables in Survival Duration by Subgroup Table
Source:R/survival_duration_subgroups.R
d_survival_subgroups_colvars.Rd
Internal function to check variables included in
tabulate_survival_subgroups()
and create column labels.
Note that at least one of n_tot
and n_tot_events
needs to be provided in vars
.
Arguments
- vars
(
character
)
the name of statistics to be reported amongn_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) andpval
(p value of the effect). Note, one of the statisticsn_tot
andn_tot_events
, as well as bothhr
andci
are required.- conf_level
(
proportion
)
confidence level of the interval.- method
p-value method for testing hazard ratio = 1.
- time_unit
(
string
)
label with unit of median survival time. DefaultNULL
skips displaying unit.