Chi-Square Tests, Power and Sample Size for Discrete and Continuous Data in One, Two or Three Dimensions

Cressie-Read power-divergence goodness-of-fit and two-sample tests for one, two and three dimensional data. Continuous data support equal-space and equal-probability partitions, simulation power, and analytic fixed-alternative power. Discrete goodness-of-fit tests support raw or value-count data with explicit support, expected-count cell merging, and analytic and simulation power calculations. The package includes a routine for sample size estimation and planning as well as a 'shiny' app for one-dimensional data. For references see the vignette.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("RChiSquare")

1.0.0 by Wolfgang Rolke, 6 hours ago


Browse source code at https://github.com/cran/RChiSquare


Authors: Wolfgang Rolke [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL-3 license


Imports stats, graphics, utils, parallel, ggplot2, shiny

Suggests knitr, rmarkdown, testthat, pkgload


See at CRAN