Performs a sampling version of Fisher's exact test for a two-way contingency table.
fisher(tab, n.sim = 1000)
A matrix of counts.
Number of samples of permuted tables to consider.
This is like the function
calculates an approximate P-value rather than performing a complete
enumeration. This will be better for large, sparse tables.
A single number: the P-value testing independence of rows and columns in the table.
TeaTasting <- matrix(c(3,1,1,3),nrow=2) fisher(TeaTasting,1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.