pairwise.fisher.test: Pairwise Fisher's exact test

Description Usage Arguments Value Author(s) See Also Examples

View source: R/pairwise.fisher.test.r

Description

Similar to pairwise.wilcox.test and pairwise.t.test, calculate pairwise comparisons of a nominal variable between group levels with corrections for multiple testing.

Usage

1
pairwise.fisher.test(x, g, p.adjust.method, ...)

Arguments

x

Response vector, nominal (or ordinal).

g

Grouping vector or factor.

p.adjust.method

Method for adjusting p-values (see p.adjust).

...

Additional arguments to pass to fisher.test.

Value

Object of class "pairwise.htest"

Author(s)

Kaspar Rufibach (maintainer), kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch

See Also

fisher.test, p.adjust, pairwise.wilcox.test, pairwise.t.test

Examples

1
2
3
4
set.seed(1977)
x <- factor(abs(round(rnorm(99, 0, 1))))
g <- factor(round(runif(99, 0, 2)))
pairwise.fisher.test(x, g, p.adjust.method = "holm")

Example output

Loading required package: xtable

	Pairwise comparisons using 

data:  x and g 

  0    1   
1 0.71 -   
2 0.71 0.71

P value adjustment method: holm 

reporttools documentation built on Oct. 12, 2021, 5:06 p.m.