OptionalBNumber of replicates for simulatePValue. Default 2000.
OptionalcorrectApply Yates' continuity correction (2 x 2 tables only). Default true.
OptionalnThe 'N - 1' chi-squared test (Campbell 2007; not in R): Pearson's statistic times (N - 1) / N, without continuity
correction, for a contingency table (2 x 2 or larger). Default false. An error for goodness of fit (a vector or
a matrix with one row or column), with simulatePValue, and with correct: true given explicitly (the default
correction is not applied).
OptionalpExpected probabilities for the goodness-of-fit test. Default: equal probabilities. Ignored for contingency tables.
OptionalrescaleRescale p to sum to 1. Default false, in which case p must sum to 1.
OptionalsimulateCompute the p-value by Monte Carlo simulation with B replicates (R's simulate.p.value), using the random
stream of setSeed as R does. Default false.
Options for chisqTest.