Analysis results data for Kruskal-Wallis Rank Sum Test.
Calculated with kruskal.test(data[[variable]], data[[by]], ...)
Arguments
- data
(
data.frame
)
a data frame.- by
(
tidy-select
)
column name to compare by- variable
(
tidy-select
)
column name to be compared
Examples
cards::ADSL |>
ard_kruskaltest(by = "ARM", variable = "AGE")
#> {cards} data frame: 4 x 9
#> group1 variable context stat_name stat_label stat
#> 1 ARM AGE kruskalt… statistic Kruskal-… 1.635
#> 2 ARM AGE kruskalt… p.value p-value 0.442
#> 3 ARM AGE kruskalt… parameter Degrees … 2
#> 4 ARM AGE kruskalt… method method Kruskal-…
#> ℹ 3 more variables: fmt_fn, warning, error