Closed ddsjoberg closed 6 months ago
can just do this with this code
ADAE |>
dplyr::slice(1L, .by = USUBJID) |>
dplyr::mutate(any_ae = TRUE) |>
cards::ard_dichotomous(by = TRTA, variable = any_ae, denominator = ADSL |> dplyr::rename(TRTA = ARM))
When we want to tabulate the number of AEs and the rate, we need to do an awkward full join. Is there a way we could make this happen with just specifying
ard_categorical(denominator)
?