Skip to content

ENH: stats proportion_confint add midp exact confint #2624

Open

Description

@josef-pkt

related to two sample proportion tests, midp are popular, almost maintain size and less conservative than exact.

Add mid-p Clopper-Pearson also to the existing proportion_confint

(Stata uses it in st epitab AFAICS)

I haven't seen formula yet that matches the current beta implementation.

Edit
(What does the last sentence above mean?)

There are more possibilities for confidence intervals in proportion_confint, see comment below.

Activity

  1. josef-pkt commented on Mar 30, 2018

    @josef-pkt
    MemberAuthor

    see PR #4410 especially discussion towards the end, which includes comments to other possible confidence intervals.
    R binom package uses in bayes by default a highest density confidence interval, which I think corresponds to (is the same as) mid-p.

    another option: R binom binom.bayes allows specifying the prior counts, which defaults to Jeffreys' (0.5, 0.5). It would be possible to add that option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions