Article view

A Python module to combine p values arising from discrete tests.

By Gerrit Ansmann

Article information

Publication
Published 29 February 2024
Institutions at publication
University of Cologne
2 Citations OpenAlex, 3 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

Most popular hypothesis tests are designed for datasets with a simple structure. For example, in a simple medical trial, this structure would be a treatment and a control group, and a test would answer whether some health score exhibits a significant difference between their members. However, many datasets are naturally segmented or benefit from being analysed in segments. Continuing our example, if we know a priori that females score higher than males on average, analysing each sex separately should allow us to see more clearly whether the treatment is effective. To draw an overall conclusion in such a case, we need to combine the 𝑝 values for each sub-dataset. Starting with Fisher's method, several ways have been proposed to combine 𝑝 values (Heard & Rubin-Delanchy, 2018). Their usual implementations assume continuous tests, i.e., tests whose 𝑝 values under the null hypothesis follow the uniform distribution on the unit interval. However, rank tests and many others are discrete tests, i.e., they can only yield 𝑝 values from a finite selection (for a given sample size). Assuming continuous tests when combining 𝑝 values from discrete tests can lead to considerably misleading outcomes (Kincaid, 1962;Mielke et al., 2004), in particular when the sub-datasets are small. We here present the Python module combine_pvalues_discrete, which provides a toolbox for combining 𝑝 values from discrete tests. Results from individual tests are stored with the respective null distribution of 𝑝 values and the combined 𝑝 value is accurately estimated using a Monte Carlo simulation based on these null distributions.

Citations per year

Citations per year
YearCitations
2024 0
2025 2
2026 0

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 2 citations, but the citing work are not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
Germany1