I've searched for this particular question but i can't seem to find the right answer.
Lets say i expect prob p01 = 0.2 and prob p10 = 0.3. I want a power of 0.8 and alpha of 0.05.
gives that a sample size of 390 is needed for this calculation.
However, when I create a matrix in R with these properties:
Yes 156 | 117
no 78 | 39
mcnemar.test in R gives a p value of 0.005 while I expected a value of 0.05.
Is this because the calculator on this website thinks in pairs?
If I create a matrix with the same properties but divided by 2 i do get the p value of 0.05:
Yes 78 | 58.5
no 39 | 19.5
Is it safe to asume that the sample size calculated on this website (and also by the functions in R) should be divided by 2 ?