I want to perform a chi-square test for a 2×2 table. Given that I might expect p-value < 0.05, how can I estimate the required sample size?
Solved – Estimate sample size for chi-squared test
chi-squared-testsample-size
chi-squared-testsample-size
I want to perform a chi-square test for a 2×2 table. Given that I might expect p-value < 0.05, how can I estimate the required sample size?
Best Answer
In order to estimate your sample, you need to know
One of the most used methods to estimate your sample size is given in the book "Statistical Methods for Rates and Proportions" of Fleiss (1973). See page 72, equation 4.15 for the corrected formula.
Here is the equation:
You can find an implementation of it in R:
power.prop.test
in thestats
package.