-
Notifications
You must be signed in to change notification settings - Fork 87
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
confint(FisherExactTest(75, 285, 1, 1140))
fails but works if you change 1 to 0
#307
Comments
If you replace 1 with a 0, there is no error:
|
Huh, this is a fun edge case. The issue here is coming from using HypothesisTests, Roots, Distributions
using HypothesisTests: find_brackets
test = FisherExactTest(75, 285, 1, 1140)
distribution((; a, b, c, d), ω) =
FisherNoncentralHypergeometric(a + b, c + d, a + c, ω)
objective(test, ω, tail) = pvalue(distribution(test, ω), test.a; tail) - 0.05 The default tail is find_brackets(ω -> objective(test, ω, :left)) which produces an interval of (5.0e-324, 1.0). However, that... isn't a bracketing interval for the optimum: the objective function doesn't actually have any roots in that interval. Now, if you try again with I suspect this is a problem with |
confint(FisherExactTest(75, 285, 1, 1140))
fails but works if you change 1 to 0
I am getting a similar problem with the
|
The text was updated successfully, but these errors were encountered: