E. Pearson N-1 Correction to K. Pearson χ²-test Test, implementation provided on stackoverflow and copied pasted (Wassermann, 2019)
References
Wassermann, (2019). “N-1 Pearson's χ²-test in R.” Cross Validated. URL:https://stats.stackexchange.com/q/439226 (version: 2019-12-04), https://stats.stackexchange.com/q/439226, https://stats.stackexchange.com/q/439226.