statmod (version 1.0.1)

fisher.test2: 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.

See Also

fisher.test

Examples

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

Run the code above in your browser using DataLab