wrapFisherTest.table: Wrap fisher.test (test of categorical independence).

View source: R/FisherTest.R

wrapFisherTest.tableR Documentation

Wrap fisher.test (test of categorical independence).

Description

Wrap fisher.test (test of categorical independence).

Usage

## S3 method for class 'table'
wrapFisherTest(
  x,
  ...,
  workspace = 2e+05,
  hybrid = FALSE,
  control = list(),
  or = 1,
  alternative = "two.sided",
  conf.int = TRUE,
  conf.level = 0.95,
  simulate.p.value = FALSE,
  B = 2000
)

Arguments

x

data.frame

...

extra arguments (not used)

workspace

passed to fisher.test

hybrid

passed to fisher.test

control

passed to fisher.test

or

passed to fisher.test

alternative

passed to fisher.test

conf.int

passed to fisher.test

conf.level

passed to fisher.test

simulate.p.value

passed to fisher.test

B

passed to fisher.test

Value

wrapped test.

Examples


d <- data.frame(x=c('b','a','a','a','b','b','b'),
                y=c('1','1','1','2','2','2','2'))
t <- table(d)
wrapFisherTest(t)



WinVector/sigr documentation built on Aug. 29, 2023, 3:57 a.m.