fisher.test2 {statmod}R Documentation

Fast Version of Fisher's Exact Test for Count Data

Description

Performs Fisher's exact test for testing the null of independence of rows and columns in a contingency table with fixed marginals. This is a cut down version of fisher.test in the ctest package.

Usage

fisher.test2(x, workspace=2e+05)

Arguments

x numeric matrix containing contingency table counts
workspace an integer specifying the size of the workspace used in the network algorithm

Value

Numeric vector of p-values.

Author(s)

Gordon Smyth

See Also

fisher.test

Examples

fisher.test2(matrix(c(0,100,20,100),2,2))

[Package Contents]