You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error is being introduced when add_p() is deciding whether to calculate the chi square test or the Fisher exact test. It is calculating whether any cells in the table have an expected count less than 5. The issue with the data you passed is that the counts are too large for R to calculate the expected cell count the way the code is written.
Rather than multiplying the large counts by each other, we'll need to first convert each count to a probability and multiply the probabilities.
The error is being introduced when add_p() is deciding whether to calculate the chi square test or the Fisher exact test. It is calculating whether any cells in the table have an expected count less than 5. The issue with the data you passed is that the counts are too large for R to calculate the expected cell count the way the code is written.
Rather than multiplying the large counts by each other, we'll need to first convert each count to a probability and multiply the probabilities.
The text was updated successfully, but these errors were encountered: