
Adverse Events Table by Body System and Severity/Toxicity
Source:R/adae_utils.R
build_adae_by_sev_tox.RdUsage
build_adae_by_sev_tox(
adae,
colsby = "ARM",
filter_cond = NULL,
grade_val = "AESEV",
class_val = "AESOC",
term_val = "AEDECOD"
)Arguments
- adae
(
data.frame)
ADAE dataset.- colsby
(
character)
Variable used to split table into columns.- filter_cond
(
character)
Filtering condition required fordf_adae.- grade_val
(
character)
AE Severity or AE Toxicity Grade i.e.AESEVorAETOXGR- class_val
(
character)
System Organ Class/Body System Class i.e.AESOCorAEBODSYS- term_val
(
character)
Dictionary Derived Term i.e.AEDECODorAETERM.
See also
Other adae_utils:
add_adae_flags(),
build_adae_summary()
Examples
suppressMessages(library(rtables, quietly = TRUE))
adsl <- pharmaverseadam::adsl |> drop_missing_cols()
#> Error in loadNamespace(x): there is no package called 'pharmaverseadam'
adae <- pharmaverseadam::adae |> drop_missing_cols()
#> Error in loadNamespace(x): there is no package called 'pharmaverseadam'
lyt <- build_adae_by_sev_tox(
adae = adae,
colsby = "ARM",
grade_val = "AESEV",
class_val = "AESOC",
term_val = "AEDECOD"
)
tbl <- build_table(lyt = lyt$lyt, df = lyt$df_out, alt_counts_df = adsl)
if (FALSE) { # \dontrun{
tt_to_flextable(tbl)
} # }