fishers_exact_test
fishers_exact_test copied to clipboard
Return Odds
Hi,
The scipy implementation returns the odds ratio, any chance you may be able to provide it? https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.fisher_exact.html
Thanks!
D.
It's certainly useful. I think we'd accept a PR for this but I don't intend to implement.
It's just:
oddsratio = (a_and_b * no_a_no_b) / (a_no_b * b_no_a)
maybe with +1 on divisor to avoid null divisions...