[R] hypergeometric vs fisher.test

Andrea Franceschini atariw at gmail.com
Fri Aug 13 15:47:32 CEST 2010


Dear R team,
I have a simple question.

I tried this command:
phyper(17,449,19551,181, FALSE)
[1] 1.47295e-07

and then I tried this command:
(fisher.test(matrix(c(17,449,181,19551),2,2),
alternative='greater'))$p.value
[1] 3.693347e-06


Shouldn't be identical the results of the two commands ?
What is the difference ?

Thx a lot
-- 
View this message in context: http://r.789695.n4.nabble.com/hypergeometric-vs-fisher-test-tp2324223p2324223.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list