[Rd] possible minor bug in fisher.test

2011-04-20 Thread Fay, Michael (NIH/NIAID) [E]
Hi, I received a bug report for my exact2x2 package that seems to apply to fisher.test in the stats package also. Here is some code which creates the error: x-factor(c(0,1,1),levels=c(0,1)) y-factor(c(1,1,1),levels=c(0,1)) fisher.test(x,y) Error in fisher.test(x, y) : 'x' and 'y' must have

Re: [Rd] possible minor bug in fisher.test

2011-04-20 Thread peter dalgaard
On Apr 20, 2011, at 21:30 , Fay, Michael (NIH/NIAID) [E] wrote: Hi, I received a bug report for my exact2x2 package that seems to apply to fisher.test in the stats package also. Here is some code which creates the error: x-factor(c(0,1,1),levels=c(0,1))