extract_survival_biomarkers {tern} | R Documentation |
Prepare survival data estimates for multiple biomarkers in a single data frame
Description
Prepares estimates for number of events, patients and median survival times, as well as hazard ratio estimates,
confidence intervals and p-values, for multiple biomarkers across population subgroups in a single data frame.
variables
corresponds to the names of variables found in data
, passed as a named list
and requires elements
tte
, is_event
, biomarkers
(vector of continuous biomarker variables), and optionally subgroups
and strata
.
groups_lists
optionally specifies groupings for subgroups
variables.
Usage
extract_survival_biomarkers(
variables,
data,
groups_lists = list(),
control = control_coxreg(),
label_all = "All Patients"
)
Arguments
variables |
(named |
data |
( |
groups_lists |
(named |
control |
( |
label_all |
( |
Value
A data.frame
with columns biomarker
, biomarker_label
, n_tot
, n_tot_events
,
median
, hr
, lcl
, ucl
, conf_level
, pval
, pval_label
, subgroup
, var
,
var_label
, and row_type
.
See Also
h_coxreg_mult_cont_df()
which is used internally, tabulate_survival_biomarkers()
.