Hi All. Sorry to bother you. I have a question about 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 it.


                                          
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to