.format_wilcoxtest_results {cardx} | R Documentation |
Convert Wilcoxon test to ARD
Description
Convert Wilcoxon test to ARD
Usage
.format_wilcoxtest_results(by = NULL, variable, lst_tidy, paired, ...)
Arguments
by |
( |
variable |
( |
lst_tidy |
(named |
paired |
a logical indicating whether you want a paired test. |
... |
passed to |
Value
ARD data frame
Examples
# 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()
)
)
[Package cardx version 0.2.1 Index]