Skip to content

Specifying confidence interval #300

@tvqt

Description

@tvqt

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions