Difference between revisions of "Tips kang"
From Crop Genomics Lab.
(Created page with "'''Fisher's exact test'''<br /> from scipy import stats<br /> oddsratio, pvalue = stats.fisher_exact([[A,B], [C, D]]) <ref name="fishers exact">[http://docs.scipy.org/doc/scip...") |
|||
Line 1: | Line 1: | ||
− | '''Fisher's exact test'''<br /> | + | '''Fisher's exact test in python'''<br /> |
from scipy import stats<br /> | from scipy import stats<br /> | ||
− | oddsratio, pvalue = stats.fisher_exact([[A,B], [C, D]]) <ref name="fishers exact">[http://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.fisher_exact.html scipy] </ref><br /> | + | oddsratio, pvalue = stats.fisher_exact([[A,B], [C, D]]) <ref name="fishers exact">[http://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.fisher_exact.html scipy, fisher's exact] </ref><br /> |
<references /> | <references /> |
Revision as of 12:33, 23 February 2014
Fisher's exact test in python
from scipy import stats
oddsratio, pvalue = stats.fisher_exact([[A,B], [C, D]]) [1]