.format_wilcoxtest_results | R Documentation |
Convert Wilcoxon test to ARD
.format_wilcoxtest_results(by = NULL, variable, lst_tidy, paired, ...)
by |
( |
variable |
( |
lst_tidy |
(named |
paired |
a logical indicating whether you want a paired test. |
... |
passed to |
ARD data frame
# Pre-processing ADSL to have grouping factor (ARM here) with 2 levels
ADSL <- cards::ADSL |>
dplyr::filter(ARM %in% c("Placebo", "Xanomeline High Dose")) |>
ard_stats_wilcox_test(by = "ARM", variables = "AGE")
cardx:::.format_wilcoxtest_results(
by = "ARM",
variable = "AGE",
paired = FALSE,
lst_tidy =
cards::eval_capture_conditions(
stats::wilcox.test(ADSL[["AGE"]] ~ ADSL[["ARM"]], paired = FALSE) |>
broom::tidy()
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.