tompollard / tableone

Create "Table 1" for research papers in Python
https://pypi.python.org/pypi/tableone/
MIT License
164 stars 41 forks source link

Chi-square test fails even if expected value in each cell is >5 #16

Closed tompollard closed 6 years ago

tompollard commented 6 years ago

Currently the chi-square test fails if any of the observed cells have fewer than 5 observations. The test assumes >5 expected values, rather than observed values. Expected value for each cell is row total*column total/overall total.