powered by
Summarises adverse events in a format similar to the AET02 table from a CSR, showing total AE counts, patients with AEs, and a breakdown by System Organ Class (SOC) and Preferred Term (PT).
AET02_table( adsl, adae, patient, treat, target = "AEDECOD", rows_by = "AEBODSYS", indent = nbsp(n = 4L) )
A merged data.table containing AE summary.
Subject-level dataset.
Adverse event dataset.
Unique subject identifier variable.
Treatment arm variable.
Preferred term variable for grouping (default: "AEDECOD").
"AEDECOD"
Higher-level term for nesting (default: "AEBODSYS").
"AEBODSYS"
Character or string to indent nested rows (default: 4 non-breaking spaces).
# Create a AET02 table AET02_table( adsl = adsl, adae = aesi, patient = "USUBJID", treat = "ARM", target = "AEDECOD", rows_by = "AEBODSYS", indent = " " )
Run the code above in your browser using DataLab