ard_continuous(ADSL, variables = AGE) |>
update_ard_fmt_fn(stat_names = c("mean", "sd"), fmt_fn = 8L) |>
update_ard_stat_label(stat_names = c("mean", "sd"), stat_label = "Mean (SD)") |>
apply_fmt_fn()
# same as above, but only apply update to the Placebo level
ard_continuous(
ADSL,
by = ARM,
variables = AGE,
statistic = ~ continuous_summary_fns(c("N", "mean"))
) |>
update_ard_fmt_fn(stat_names = "mean", fmt_fn = 8L, filter = group1_level == "Placebo") |>
apply_fmt_fn()
Run the code above in your browser using DataLab