Re: [R] Fisher test accuracy in doubt

2009-03-21 Thread hadley wickham
On Sat, Mar 21, 2009 at 2:03 PM, joker77 wrote: > > Hi, I noted a discrepancy between R and openepi when I ran a fisher test with > the same matrix. In R: > >> a=matrix(c(1,2,6,17), nrow=2) >> a >     [,1] [,2] > [1,]    1    6 > [2,]    2   17 >> fisher.test(a, conf.int=T) > >        Fisher's Exa

[R] Fisher test accuracy in doubt

2009-03-21 Thread joker77
Hi, I noted a discrepancy between R and openepi when I ran a fisher test with the same matrix. In R: > a=matrix(c(1,2,6,17), nrow=2) > a [,1] [,2] [1,]16 [2,]2 17 > fisher.test(a, conf.int=T) Fisher's Exact Test for Count Data data: a p-value = 1 alternative hypoth