Displaying 1 result from an estimated 1 matches for "27s_exact_test".
2012 Dec 03
1
discrepancy in fisher exact test between R and wiki formula
...fisher exact test.
I counted the presence of gene mutation in two groups of samples. My data is as follows
Presence Absence
GroupA 4 6
GroupB 5 11
When using the formula of fisher exact test provided by wiki (http://en.wikipedia.org/wiki/Fisher%27s_exact_test), the p-value is 0.29.
But when calculated by R, the p-value is 0.69. My code is shown below
counts<-c(4,5,6,11)
data<-matrix(counts,nrow=2)
fisher.test(data)
Why did I get two different numbers? Is there anything wrong with my R codes?
Wish your help! Thanks very much! I really appreciate...