fisher(tab, n.sim = 1000)
fisher.test
, but
calculates an approximate P-value rather than performing a complete
enumeration. This will be better for large, sparse tables.chisq.test
,
fisher.test
, chisq
TeaTasting <- matrix(c(3,1,1,3),nrow=2)
fisher(TeaTasting,1000)
Run the code above in your browser using DataLab