← Back to all sparks
D

discretetests

INFRA · APIS
Velocity0.0

R package discretetests by disohda — release notes from GitHub.

Four years of releases land in four minutes as the changelog gets backfilled to GitHub

statistical-testingexact-testsnonparametricr-packagep-values
Current state
DiscreteTests computes exact p-values and their full support for discrete statistical tests, returning results as a class that carries the observations, the test statistic and the null distribution. All four visible releases were tagged within four minutes of each other on a single day in May 2026, in reverse order — 0.4.1 carries the earliest timestamp and 0.4.0 the latest — so this is a historical changelog being pushed to GitHub at once, not four days of work.
Where it's heading
Read by version rather than by timestamp, the package grew from binomial, Fisher, McNemar and Poisson tests into rank-based and resampling territory: Wilcoxon signed rank and rank sum, Mann-Whitney U, a conditional homogeneity test, then sign tests and a general permutation test with several built-in statistics. Alongside that the result class was extended to hold ragged observation lists and computational detail, the print output was rewritten on cli, and the old dot-separated function names were made defunct.
Prediction
The permutation test with pluggable statistics is the most open-ended addition here, and adding further built-in statistics to it is the cheapest way to extend the package from where it now stands.

Recent moves

  1. 2mo ago

    Sign tests and a pluggable permutation test

    Sign tests for one- and two-sample paired designs and a permutation test for two independent samples with several built-in statistics. The permutation test is the more open-ended of the two, since its statistic is a parameter rather than fixed.

    View source ↗
  2. 2mo ago

    Input observation names carried through results

    get_pvalues() and print() on DiscreteTestResults now carry through the row or cell names of the input observations, with an option to suppress them. Small, but it removes the manual re-labelling step when tracking which result belongs to which observation.

    View source ↗
  3. 2mo ago

    Wilcoxon, Mann-Whitney and homogeneity tests join the package

    The largest release of the set: Wilcoxon signed rank and rank sum tests, Mann-Whitney U, and a conditional two-sample homogeneity test. The result class is extended to store ragged observation lists plus test statistics and null distribution details, print output is rewritten on cli, and the old dot-separated function names become defunct.

    View source ↗
  4. 2mo ago

    macOS compilation fix

    A compilation fix for certain macOS configurations. Despite carrying the highest version number in this set, it holds the earliest timestamp — an artifact of the backfill order.

    View source ↗