RChiSquare: A Unified Framework for Chi-Square Tests in One, Two and Three Dimensions
stat.ME, stat.CO
Submitted: 2026-12-01
Updated: 2026-12-01
Comments: 23 pages, 5 figures, 6 tables. R package RChiSquare available on CRAN; reproduction code included as ancillary files
License: http://creativecommons.org/licenses/by/4.0/
The gist: Chi-square tests remain widely used despite the availability of more powerful goodness-of-fit and two-sample procedures.
Terminology
Abstract
Chi-square tests remain widely used despite the availability of more powerful goodness-of-fit and two-sample procedures. Their appeal lies in their broad applicability to discrete and continuous data, in one or more dimensions, and in a well-developed large-sample theory that facilitates significance testing, power estimation, and sample-size planning. Although their power depends on the choice of partition, relatively few well-chosen cells can provide useful performance. The RChiSquare package provides a unified interface to the Cressie--Read family of power-divergence statistics for discrete and continuous observations in one, two and three dimensions. It accommodates fully specified and composite goodness-of-fit hypotheses, two-sample testing, parameter estimation, analytic and simulation-based power calculations, and sample-size determination. The examples illustrate testing, analytic power calculations, and sample-size planning, including comparisons with alternative procedures. They demonstrate the use of the routines rather than providing a simulation-based calibration study. The emphasis is on making established methods available within one coherent workflow.
Related papers
- Regularized Halfspace Depth for Functional Data
- Active multiple testing with proxy p-values and e-values
- Inferring Change Points in Regression via Sample Weighting
- BOOST: Power-Optimal Strong-FWER Testing for Block-Structured Multiplicity
- MR-CCC: Bayesian Mendelian Randomization for Causal Cell--Cell Communication
- Optimal multiple testing under family-wise error control: elementary symmetric polynomials and a scalable algorithm