Skip to contents

[Maturing]

Usage

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 for df_adae.

grade_val

(character)
AE Severity or AE Toxicity Grade i.e. AESEV or AETOXGR

class_val

(character)
System Organ Class/Body System Class i.e. AESOC or AEBODSYS

term_val

(character)
Dictionary Derived Term i.e. AEDECOD or AETERM.

Value

An rtable object

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)
} # }