[SciPy-User] fisherexact.py returns None
Sun Dec 20 12:37:38 CST 2009
On Sun, Dec 20, 2009 at 12:26 PM, Pete Shepard <email@example.com> wrote:
> 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]])
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.
> SciPy-User mailing list
More information about the SciPy-User