fisher.test2 {statmod} | R Documentation |
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.
fisher.test2(x, workspace=2e+05)
x |
numeric matrix containing contingency table counts |
workspace |
an integer specifying the size of the workspace used in the network algorithm |
Numeric vector of p-values.
Gordon Smyth
fisher.test2(matrix(c(0,100,20,100),2,2))