Wrap fisher.test (test of categorical independence).
# S3 method for 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 )
x | data.frame |
---|---|
... | extra arguments (not used) |
workspace | passed to |
hybrid | passed to |
control | passed to |
or | passed to |
alternative | passed to |
conf.int | passed to |
conf.level | passed to |
simulate.p.value | passed to |
B | passed to |
wrapped test.
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)#> [1] "Fisher's Exact Test for Count Data: (odds.ratio=4.45, p=n.s.)."