# NOT RUN {
basic_table() %>%
split_cols_by("ARM", ref_group = "B: Placebo") %>%
analyze("AGE", afun = function(x, .ref_group) {
in_rows(
"Difference of Averages" = rcell(mean(x) - mean(.ref_group), format = "xx.xx")
)
}) %>%
build_table(DM)
# }
Run the code above in your browser using DataLab