Skip to contents

Analysis results data for Kruskal-Wallis Rank Sum Test.

Calculated with kruskal.test(data[[variable]], data[[by]], ...)

Usage

ard_kruskaltest(data, by, variable)

Arguments

data

(data.frame)
a data frame.

by

(tidy-select)
column name to compare by

variable

(tidy-select)
column name to be compared

Value

ARD data frame

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