ard_pairwise(
ADSL,
variable = ARM,
.f = \(df) {
ard_complex(
df,
variables = AGE,
statistic = ~ list(ttest = \(x, data, ...) t.test(x ~ data$ARM)[c("statistic", "p.value")])
)
},
include = "Placebo" # only include comparisons to the "Placebo" group
)
Run the code above in your browser using DataLab