Skip to content

BUG: wrong confint in rankcompare summary #8425

Closed

Description

@josef-pkt

I'm working on a notebook for rank compare, brunner-munzel.
some of the results attributes are not "obvious"

bug in summary which creates a simple table,
numbers in attributes and returns are unit tested, but not the summary SimpleTable

current code has
ci = np.atleast_2d(self.conf_int(alpha))
However, the first argument of conf_int method is value and not alpha. It took me some time to figure out why summary has the wrong confint.

this should be
ci = np.atleast_2d(self.conf_int(alpha=alpha))

Never rely on position for keyword arguments

question:
why do we have var and var_prob? it's not documented

    var_prob = (var1 / nobs1 + var2 / nobs2)
    var = nobs * (var1 / nobs1 + var2 / nobs2)

conf_int method uses std_diff = np.sqrt(self.var / self.nobs)

Activity

  1. added
    type-bug-wrong
    on Sep 30, 2022
  2. added this to the 0.14 milestone on Dec 1, 2022
  3. josef-pkt commented on Dec 1, 2022

    @josef-pkt
    MemberAuthor

    fixed in #8427

    this was type-bug-wrong in 0.13

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp-statstype-bug-wrong

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions