H0: pk=pk,0 for all k
Ha: not equal
gof.Pearson.twoway(alpha, beta, trt, ctl, r, c)
significance level
power = 1-beta
proportion of each subject in treatment group
proportion of each subject in control group
number of rows in the two-way table
number of column in the two-way table
(*) is \(\chi^{2}_{r-1}(\chi^{2}_{\alpha, r-1}|noncen)=\beta\)
Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003