JuliaStats / HypothesisTests.jl

Hypothesis tests for Julia
Other
292 stars 87 forks source link

Specifying confidence interval #300

Open tvqt opened 1 year ago

tvqt commented 1 year ago

I found this question on StackOverflow from almost seven years ago:

When I call the following example I receive a pretty report, with confidence equal to 95% I'd like to receive similar report but for confidence equal to 99%. The docs state that OneSampleTest implements method confint, which does receive parameter alpha, but it does not give me a full report as shown above.

Looking into the source code now, unless I am mistaken, it still seems to be the case that the confidence interval in OneSampleTTest() is hard coded at 95%.

Two questions:

  1. Am I mistaken? Is it actually implemented?
  2. it seems like it would be relatively straightforward to implement (at least for t tests, unsure about the other ones). If I were to do that, and make a pull request, would it be accepted (i.e. is there any appetite for this feature)?

Cheers!