Skip to contents

Analysis results data for Fisher's Exact Test. Calculated with fisher.test(x = data[[variable]], y = data[[by]], ...)

Usage

ard_fishertest(data, by, variable, ...)

Arguments

data

(data.frame)
a data frame.

by, variable

(tidy-select)
column names to compare

...

additional arguments passed to fisher.test(...)

Value

ARD data frame

Examples

cards::ADSL[1:30, ] |>
  ard_fishertest(by = "ARM", variable = "AGEGR1")
#> {cards} data frame: 12 x 9
#>    group1 variable   context        stat_name stat_label        stat
#> 1     ARM   AGEGR1 fisherte…          p.value    p-value       0.089
#> 2     ARM   AGEGR1 fisherte…           method     method   Fisher's…
#> 3     ARM   AGEGR1 fisherte…      alternative  alternat…   two.sided
#> 4     ARM   AGEGR1 fisherte…        workspace  workspace       2e+05
#> 5     ARM   AGEGR1 fisherte…           hybrid     hybrid       FALSE
#> 6     ARM   AGEGR1 fisherte…       hybridPars  hybridPa… c, 5, 80, 1
#> 7     ARM   AGEGR1 fisherte…          control    control        list
#> 8     ARM   AGEGR1 fisherte…               or         or           1
#> 9     ARM   AGEGR1 fisherte…         conf.int   conf.int        TRUE
#> 10    ARM   AGEGR1 fisherte…       conf.level  conf.lev…        0.95
#> 11    ARM   AGEGR1 fisherte… simulate.p.value  simulate…       FALSE
#> 12    ARM   AGEGR1 fisherte…                B          B        2000
#>  3 more variables: fmt_fn, warning, error