Nothing
Code
ard <- ard_stack_hierarchical(dplyr::mutate(ADAE_small, AESOC = ifelse(dplyr::row_number() ==
1L, NA, AESOC)), variables = c(AESOC, AEDECOD), id = USUBJID, denominator = dplyr::rename(
ADSL, TRTA = TRT01A))
Message
* Removing 1 row from `data` with NA or NaN values in "AESOC" and "AEDECOD" columns.
Code
ard <- ard_stack_hierarchical(ADAE_small, variables = c(AESOC, AEDECOD), id = USUBJID,
by = TRTA, denominator = dplyr::mutate(dplyr::rename(ADSL, TRTA = TRT01A),
TRTA = ifelse(dplyr::row_number() == 1L, NA, TRTA)))
Message
* Removing 1 row from `denominator` with NA or NaN values in "TRTA" column.
Code
ard_stack_hierarchical(ADAE_small, variables = starts_with("xxxxx"), id = USUBJID,
denominator = dplyr::rename(ADSL, TRTA = TRT01A))
Condition
Error in `ard_stack_hierarchical()`:
! Arguments `variables` and `include` cannot be empty.
Code
ard_stack_hierarchical(ADAE_small, variables = c(AESOC, AEDECOD), id = starts_with(
"xxxxx"), denominator = dplyr::rename(ADSL, TRTA = TRT01A))
Condition
Error in `ard_stack_hierarchical()`:
! Argument `id` cannot be empty.
Code
ard <- ard_stack_hierarchical(dplyr::mutate(ADAE_small, TRTA = ifelse(dplyr::row_number() ==
1L, NA, TRTA)), variables = c(AESOC, AEDECOD), by = TRTA, id = USUBJID,
denominator = dplyr::rename(ADSL, TRTA = TRT01A))
Message
* Removing 1 row from `data` with NA or NaN values in "TRTA", "AESOC", and "AEDECOD" columns.
Code
ard_stack_hierarchical(ADAE_small, variables = c(AESOC, AEDECOD), by = TRTA,
id = USUBJID, denominator = character())
Condition
Error in `ard_stack_hierarchical()`:
! The `denominator` argument must be a <data.frame> or an <integer>, not an empty character vector.
Code
ard_stack_hierarchical(ADAE, variables = c(AESOC, AEDECOD), by = TRTA, id = USUBJID)
Condition
Error in `ard_stack_hierarchical()`:
! The `denominator` argument cannot be missing.
Code
ard_stack_hierarchical(ADAE_small, variables = c(AESOC, AEDECOD), include = AESOC,
by = TRTA, denominator = dplyr::rename(ADSL, TRTA = ARM), id = USUBJID)
Condition
Error in `ard_stack_hierarchical()`:
! The last column specified in the `variables` (i.e. "AEDECOD") must be in the `include` argument.
Code
ard <- ard_stack_hierarchical(ADAE_small, variables = c(AESOC, AEDECOD),
denominator = dplyr::rename(ADSL, TRTA = ARM), id = USUBJID, overall = TRUE)
Message
The `by` argument must be specified when using `overall=TRUE`.
i Setting `overall=FALSE`.
Code
ard_stack_hierarchical_count(ADAE_small, variables = c(AESOC, AEDECOD), by = TRTA,
denominator = letters)
Condition
Error in `ard_stack_hierarchical_count()`:
! The `denominator` argument must be empty, a <data.frame>, or an <integer>, not a character vector.
Code
ard <- ard_stack_hierarchical_count(ADAE_small, variables = c(AESOC, AEDECOD),
total_n = TRUE)
Message
The `denominator` argument must be specified when using `total_n=TRUE`.
i Setting `total_n=FALSE`.
Code
ard <- ard_stack_hierarchical_count(ADAE_small, variables = c(AESOC, AEDECOD),
by = TRTA, overall = TRUE)
Message
The `denominator` argument must be specified as a data frame when using `overall=TRUE`.
i Setting `overall=FALSE`.
Code
dplyr::filter(ard_stack_hierarchical_count(ADAE_small, variables = c(AESOC, AEDECOD), by = c(TRTA, AESEV), denominator = dplyr::rename(ADSL, TRTA = ARM), overall = TRUE), !group1 %in% "TRTA" & !group2 %in% "TRTA" & !group3 %in% "TRTA" &
!variable %in% "TRTA")
Message
{cards} data frame: 18 x 15
Output
group1 group1_level group2 group2_level group3 group3_level variable variable_level stat_name stat_label stat
1 AESEV MILD <NA> <NA> AESOC GENERAL … n n 4
2 AESEV MILD <NA> <NA> AESOC SKIN AND… n n 1
3 AESEV MODERATE <NA> <NA> AESOC GENERAL … n n 0
4 AESEV MODERATE <NA> <NA> AESOC SKIN AND… n n 1
5 <NA> <NA> <NA> AESOC GENERAL … n n 4
6 <NA> <NA> <NA> AESOC SKIN AND… n n 2
7 AESEV MILD AESOC GENERAL … <NA> AEDECOD APPLICAT… n n 2
8 AESEV MILD AESOC GENERAL … <NA> AEDECOD APPLICAT… n n 2
9 AESEV MILD AESOC SKIN AND… <NA> AEDECOD ERYTHEMA n n 1
10 AESEV MILD AESOC SKIN AND… <NA> AEDECOD PRURITUS… n n 0
11 AESEV MODERATE AESOC GENERAL … <NA> AEDECOD APPLICAT… n n 0
12 AESEV MODERATE AESOC GENERAL … <NA> AEDECOD APPLICAT… n n 0
13 AESEV MODERATE AESOC SKIN AND… <NA> AEDECOD ERYTHEMA n n 0
14 AESEV MODERATE AESOC SKIN AND… <NA> AEDECOD PRURITUS… n n 1
15 AESOC GENERAL … <NA> <NA> AEDECOD APPLICAT… n n 2
16 AESOC GENERAL … <NA> <NA> AEDECOD APPLICAT… n n 2
17 AESOC SKIN AND… <NA> <NA> AEDECOD ERYTHEMA n n 1
18 AESOC SKIN AND… <NA> <NA> AEDECOD PRURITUS… n n 1
Message
i 4 more variables: context, fmt_fn, warning, error
Code
as.data.frame(dplyr::select(dplyr::filter(ard_stack_hierarchical_count(
ADAE_small, variables = AESOC, by = TRTA, denominator = dplyr::rename(ADSL,
TRTA = ARM), over_variables = TRUE, overall = TRUE), variable ==
"..ard_hierarchical_overall.."), all_ard_groups(), "variable", "stat_name",
"stat"))
Output
group1 group1_level variable stat_name stat
1 TRTA Placebo ..ard_hierarchical_overall.. n 2
2 TRTA Xanomeline High Dose ..ard_hierarchical_overall.. n 2
3 TRTA Xanomeline Low Dose ..ard_hierarchical_overall.. n 2
4 <NA> NULL ..ard_hierarchical_overall.. n 6
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.