[SciPy-User] fisherexact.py returns None

josef.pktd at gmail.com josef.pktd at gmail.com
Sun Dec 20 13:37:38 EST 2009


On Sun, Dec 20, 2009 at 12:26 PM, Pete Shepard <peter.shepard at gmail.com> wrote:
> Hello,
>
> I am using a fisher exact test I got from
> http://projects.scipy.org/scipy/attachment/ticket/956/fisher.py. This
> program takes in two tuples and returns an odds ratio and a  p-value. Most
> tuples are handled nicely by the script but certain tuples eg "[[6, 1], [1,
> 6]]" return "None". I am wondering if anyone knows why this is true?

I get this, with and without the patch of thomas in the comments

>>> fisherExact([[6, 1], [1, 6]])
(36.0, 0.029137529137528768)

Do you have an exact example? Which version of numpy and scipy?
Looking at the code, I don't see any reason why it should return None.

Josef
>
> TIA
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>



More information about the SciPy-User mailing list