vars <- c('AGE', 'RACE', 'ETHNIC', 'BMRKR1')
var_labels <- c("Age (yr)", "Race", "Ethnicity", "Continuous Level Biomarker 1")
# Summary statistics table split by ARM with custom labels.
(tt <- tern_summary_table(
adsl,
target = vars,
treat = 'ARM',
target_name = var_labels
))
# Format as a dtlg table
as_dtlg_table(tt)
Run the code above in your browser using DataLab