Skip to content

RChiSquare: A Unified Framework for Chi-Square Tests in One, Two and Three Dimensions

Wolfgang Rolke

stat.ME

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.

Create a lesson

Metadata

Categories
stat.ME, stat.CO
Comments
23 pages, 5 figures, 6 tables. R package RChiSquare available on CRAN; reproduction code included as ancillary files