Chi-square test of independence or goodness-of-fit
Arguments
- observed
Observed counts (matrix for independence, vector for GOF).
- expected
Expected counts for GOF (optional; uniform if NULL).
- correct
Apply Yates' continuity correction to a 2 x 2 table (
TRUE, thestats::chisq.testdefault).FALSEgives the plain Pearson statistic. Cramer's V always uses the uncorrected statistic.
