# DF When calculating Chi Square Sample Size

I was wondering if someone could provide me some insights on sample size calculation for Chi Square tests.

$$\begin{array}{c|c|c|} & \text{Group 1} & \text{Group 2}& \text{χ2} \\ \ \text{var 1} & a & b& p= \\ \hline \text{var 2} & c & d& p= \\ \hline \text{var 3} & e & f& p= \\ \hline \end{array}$$

I have a table like this where I am doing simple chi square test for each variable. So there are 3 tests. When calculating sample size using G power is my Df=1? Since Df=(c-1)(r-1) for each individual test.

Moreover, the sample size I get is for one variable I assume. How do I adjust for multiple variables?

Thank You for any help

• The df will be 1 since it amounts to a test of two proportions. If you are willing to assume that tests for var1–var3 are independant, a very simple yet conservative procedure would be to use Bonferroni correction. Now, you need to tell us what your design really is, and why you are interested in determining the sample size required to reach a given statistical power for three variables.
– chl
Nov 27, 2020 at 19:35
• Hello, thank you for answer!. The study is a retrospective study. I am measuring symptoms and certain demographics in two different patient groups and seeing if it is more common in one or the another. Another thing I didn't understand is what the bonferri correction has to do with sample size. When I actually run the test the P-value i will adjust based on the #of tests, but should I do anything else with regards to the sample size? I really appreciate it, thanks! Nov 28, 2020 at 2:28