Skip to content

BUG: multipletests incorrect reject for Holm-Sidak #764

Closed

Description

@josef-pkt

The reject boolean in multipletests was not tested, only the pvalues are

For method='hs' the reject boolean is incorrect

need:
assert_equal(reject, pvalscorr <= alpha)

It also looks like there are different treatments in multipletests, whether we have weak or strict inequality for rejection

pvalscorr <= alpha
or
pvalscorr < alpha

This only happens when I check example with corrected pvalue == 0.05 (when alpha = 0.05). It won't happen with real p-values, but we should have consistency.
(or maybe just my unit test is still wrong)

Activity

  1. josef-pkt commented on Apr 11, 2013

    @josef-pkt
    MemberAuthor

    I moved to a consistent definition that we reject at the threshold, i.e.

    assert_equal(reject, pvalscorr <= alpha)
    assert_equal(~reject, pvalscorr > alpha)

    tests now pass also for exactly 0.5 in a consistent way (but there might still be other "corners")

  2. added a commit that references this issue on Apr 11, 2013
    17411d9
  3. added a commit that references this issue on May 24, 2013
    a9126b4
  4. added a commit that references this issue on Sep 2, 2014
    ff825c4
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions