aesi_vars <- c(
"FATAL", "SER", "SERWD", "SERDSM", "RELSER",
"WD", "DSM", "REL", "RELWD", "RELDSM", "SEV"
)
heading <- "Total number of patients with at least one AE"
multi_event_true(
dt = aesi,
event_vars = aesi_vars,
patient = "USUBJID",
treat = "ARM",
heading = heading,
.total_dt = adsl,
indent = " "
)[[1]]
Run the code above in your browser using DataLab