Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return Odds #33

Open
davidnarganes opened this issue Aug 31, 2021 · 2 comments
Open

Return Odds #33

davidnarganes opened this issue Aug 31, 2021 · 2 comments

Comments

@davidnarganes
Copy link

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.

@brentp
Copy link
Owner

brentp commented Sep 2, 2021

It's certainly useful. I think we'd accept a PR for this but I don't intend to implement.

@davidnarganes
Copy link
Author

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants