Analysis results data for Pearson's Chi-squared Test.
Calculated with chisq.test(x = data[[variable]], y = data[[by]], ...)
Arguments
- data
(
data.frame
)
a data frame.- by, variable
(
tidy-select
)
column names to compare- ...
additional arguments passed to
fisher.test(...)
Examples
cards::ADSL |>
ard_chisqtest(by = "ARM", variable = "AGEGR1")
#> {cards} data frame: 9 x 9
#> group1 variable context stat_name stat_label
#> 1 ARM AGEGR1 chisqtest statistic X-square…
#> 2 ARM AGEGR1 chisqtest p.value p-value
#> 3 ARM AGEGR1 chisqtest parameter Degrees …
#> 4 ARM AGEGR1 chisqtest method method
#> 5 ARM AGEGR1 chisqtest correct correct
#> 6 ARM AGEGR1 chisqtest p p
#> 7 ARM AGEGR1 chisqtest rescale.p rescale.p
#> 8 ARM AGEGR1 chisqtest simulate.p.value simulate…
#> 9 ARM AGEGR1 chisqtest B B
#> stat
#> 1 6.852
#> 2 0.144
#> 3 4
#> 4 Pearson'…
#> 5 TRUE
#> 6 rep, 1/length(x), length(x)
#> 7 FALSE
#> 8 FALSE
#> 9 2000
#> ℹ 3 more variables: fmt_fn, warning, error