If I have

N = 107

DataSet1:

69,7

31,0

The power value for chi square test is 0.86809.

I want to know the exact steps for this calculation..

Another example is

N = 107

DataSet 2:

.......Column1,Column2

Row1:47,20

Row2:38,2

The power value for chi square test is 0.41613.

Please explain all steps of calculation and the formula..

I need to apply the method to other datasets..

Thanks in advance.