View source: R/tbl_ard_strata.R
| tbl_ard_strata | R Documentation |
Similar to tbl_strata(), except the function accepts an ARD
instead of a data frame.
tbl_ard_strata(
cards,
strata,
.tbl_fun,
...,
.sep = ", ",
.combine_with = c("tbl_merge", "tbl_stack"),
.combine_args = NULL,
.header = ifelse(.combine_with == "tbl_merge", "**{strata}**", "{strata}")
)
tbl_ard_strata2(
cards,
strata,
.tbl_fun,
...,
.sep = ", ",
.combine_with = c("tbl_merge", "tbl_stack"),
.combine_args = NULL,
.header = ifelse(.combine_with == "tbl_merge", "**{strata}**", "{strata}")
)
cards |
( |
strata |
( |
.tbl_fun |
( |
... |
Additional arguments passed on to the |
.sep |
( |
.combine_with |
( |
.combine_args |
(named |
.header |
( - `strata` stratum levels - `n` N within stratum - `N` Overall N The evaluated value of |
a 'gtsummary' table
cards::ADLB |>
dplyr::filter(
AVISIT %in% c("Baseline", "Week 12", "Week 24"),
PARAMCD %in% c("ALB", "BUN")
) |>
cards::ard_summary(
strata = PARAM,
by = TRTA,
variables = AVAL
) |>
tbl_ard_strata2(
strata = c(group2, group2_level),
~ .x |>
tbl_ard_summary(by = TRTA, label = list(AVAL = .y)),
.combine_with = "tbl_stack",
.combine_args = list(group_header = NULL)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.