[Scipy-tickets] [SciPy] #956: Include Fisher exact test for 2x2 contingency tables in scipy.stats
SciPy Trac
scipy-tickets@scipy....
Thu Jul 1 19:37:27 CDT 2010
#956: Include Fisher exact test for 2x2 contingency tables in scipy.stats
-------------------------+--------------------------------------------------
Reporter: dsimcha | Owner: somebody
Type: enhancement | Status: needs_work
Priority: normal | Milestone: 0.8.0
Component: scipy.stats | Version: 0.7.0
Keywords: patch |
-------------------------+--------------------------------------------------
Comment(by dsimcha):
Here's an updated version of this code. The original function was written
in the D language and ported to Python a while back. I later realized that
there were some numerical issues in the implementation that were being
masked because I was using 80-bit precision in the D version. I have fixed
these and ported the results back to the Python version.
The following things should be noted:
1. There is still a little numerical fuzz that's related to Ticket 1218
(http://projects.scipy.org/scipy/ticket/1218). This is a problem with the
rest of SciPy?, not this code.
2. I have not changed the odds ratio estimation. My code currently uses
the sample odds ratio. R may be using something fancier, like the
aforementioned conditional maximum likelihood estimate. See
http://en.wikipedia.org/wiki/Odds_ratio .
--
Ticket URL: <http://projects.scipy.org/scipy/ticket/956#comment:16>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.
More information about the Scipy-tickets
mailing list