[SciPy-User] fisherexact.py returns None

josef.pktd@gmai... josef.pktd@gmai...
Sun Dec 20 12:37:38 CST 2009


On Sun, Dec 20, 2009 at 12:26 PM, Pete Shepard <peter.shepard@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@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>


More information about the SciPy-User mailing list