View source: R/survival_biomarkers_subgroups.R
extract_survival_biomarkers | R Documentation |
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.
extract_survival_biomarkers(
variables,
data,
groups_lists = list(),
control = control_coxreg(),
label_all = "All Patients"
)
variables |
(named |
data |
( |
groups_lists |
(named |
control |
( |
label_all |
( |
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
.
h_coxreg_mult_cont_df()
which is used internally, tabulate_survival_biomarkers()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.