Vectorised Computation of P-Values and Their Supports for Several Discrete Statistical Tests
Overview
Provides vectorised functions for computing p-values of various common discrete statistical tests, as described e.g. in Agresti (2002) doi:10.1002/0471249688, including their distributions. Exact and approximate computation methods are provided. For exact ones, several procedures of determining two-sided p-values are included, which are outlined in more detail in Hirji (2006) doi:10.1201/9781420036190.
- Critical bugfix for
wilcox_test_pv(): standard deviations for normal approximation were incorrectly computed when using Pratt's method for handling zero differences (could become negative).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-05-28
- ERROR12 OK, 1 ERROR2026-05-19
- OK14 OK2026-04-22
Show 2 earlier changesHide 2 earlier changes
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 13includes a package overview page
- Examples that run
- 100%12 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 77%
- Return-value docs
- 82%
- Help pages citing references
- 77%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 10
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Releases over time
Issues over time
Commits over time
3 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/disohda/discretetests on 2026-10-21.
Dependencies
Installing DiscreteTests adds 15 packages (10 with compiled code, 6.2 MB of source tarballs). Heaviest: Rcpp 1.8 MB, vctrs 1.0 MB, rlang 766 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.5.2Latest
- 0.5.12026-09-02 · diff ↗
- 0.5.02026-08-26 · diff ↗
- 0.4.12026-05-28 · diff ↗
- 0.4.0
- RR 4.6.0 released · 2026-04-24
- 0.3.0
- RR 4.5.0 released · 2025-04-11
- 0.2.12024-10-27 · diff ↗
- 0.2.02024-07-16 · diff ↗ ·
added 4 exports
binom_test_pv, fisher_test_pv, mcnemar_test_pv, poisson_test_pv - 0.1.32024-06-21 · diff ↗
- 0.1.22024-05-11 · diff ↗
- 0.1.12024-05-02
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-05-02
- Total releases
- 11 / 2 yrs
- License
- GPL-3 OSI
- Download size
- 62 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("DiscreteTests")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.