ard_hierarchical {cards} | R Documentation |
Hierarchical ARD Statistics
Description
Performs hierarchical or nested tabulations, e.g. tabulates AE terms nested within AE system organ class.
-
ard_hierarchical()
includes summaries for the last variable listed in thevariables
argument, nested within the other variables included. -
ard_hierarchical_count()
includes summaries for all variables listed in thevariables
argument each summary nested within the preceding variables, e.g.variables=c(AESOC, AETERM)
summarizesAETERM
nested inAESOC
, and also summarizes the counts ofAESOC
.
Usage
ard_hierarchical(
data,
variables,
by = dplyr::group_vars(data),
statistic = everything() ~ categorical_summary_fns(),
denominator = NULL,
fmt_fn = NULL,
stat_label = everything() ~ default_stat_labels()
)
ard_hierarchical_count(
data,
variables,
by = dplyr::group_vars(data),
fmt_fn = NULL,
stat_label = everything() ~ default_stat_labels()
)
Arguments
data |
( |
variables |
( |
by |
( |
statistic |
( |
denominator |
( |
fmt_fn |
( |
stat_label |
( |
Value
an ARD data frame of class 'card'
Examples
ard_hierarchical(
data = ADAE,
variables = c(AESOC, AETERM),
by = c(TRTA, AESEV),
denominator = ADSL |> dplyr::rename(TRTA = ARM)
)
ard_hierarchical_count(
data = ADAE,
variables = c(AESOC, AETERM),
by = TRTA
)