[R] fisher exact for > 2x2 table

David Winsemius dwinsemius at comcast.net
Thu Apr 28 22:59:08 CEST 2011


On Apr 28, 2011, at 4:23 PM, viostorm wrote:

>
> I have read the help page, or at least ?fisher.exact

Then it should have been clear that more than 2x2 tables can be used.

>
> I looked a bit on the Internet I guess it is applicable to > 2x2.  I  
> had
> spoken to a biostatistician here who is quite excellent and was  
> adamant with
> me I could not do > 2x2.
>
> I found this:
>
> http://mathworld.wolfram.com/FishersExactTest.html
>
> Does anyone know specifically how R is calculating this?

The answer to any question like that is ... look at the source. You  
will see extensive use of phyper() which is calculating that  
expression for various arguments.

?phyper

-- 
David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list