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

Incorrect value of CI in FisherExactTest() #234

Open
muimuiz opened this issue May 21, 2021 · 0 comments
Open

Incorrect value of CI in FisherExactTest() #234

muimuiz opened this issue May 21, 2021 · 0 comments

Comments

@muimuiz
Copy link

muimuiz commented May 21, 2021

It seems that the upper bound of the confidence interval in FisherExactTest() returns an incorrect value (probably when the odds ratio is far from 1).

julia> confint(FisherExactTest(5,192,40,50))
(0.009676931449075, 4.503599627370496e15) <====

julia> confint(FisherExactTest(5,191,40,50))
(0.009727027600800141, 0.09011337150812752)

(@v1.5) pkg> status HypothesisTests
Status `C:\Users\****\.julia\environments\v1.5\Project.toml`
  [09f84164] HypothesisTests v0.10.4

The below is the result in R for the same case above.

R> fisher.test(matrix(c(5,192,40,50),2,2))$conf.int
[1] 0.009675738 0.089635757 <====
attr(,"conf.level")
[1] 0.95

R> fisher.test(matrix(c(5,191,40,50),2,2))$conf.int
[1] 0.009725712 0.090110378
attr(,"conf.level")
[1] 0.95
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

1 participant