I am trying to understand a published analysis. This is the data of interest:
D1>0 D1<0 D2>0 7 2 9 D2<0 9 15 24 total 16 17 33The author notes that 17/33 is 51.5% and states:
"we expect about 50% of the D1's to be negative, and that is what we actually observe here (z=.08, p=n.s)".
Now I assume that the z comparison is 17/33 vs 16.5/33 (chance?) and that the statistic employed is the z-ratio for the significance of the difference between two proportions.
However my own calculation for this comes out as z=.123. Can anyone help with the discrepancy?
UPDATE: The author has responded and admits that the published z is an error. He gives the corrected answer as z=0.17.
I am still not sure how he worked it out though:
We are not considering the difference between two proportions, since they are not independent 16/33 = 17/33 -1. We are interested whether the proportion of D1<0 significantly deviated from the expected value of 0.5
The nearest I can get is R prop.test function. Is this directly comparable?
prop.test(c(17, 16.5), c( 33, 33)) 2-sample test for equality of proportions with continuity correction data: c(17, 16.5) out of c(33, 33) X-squared = 0, df = 1, p-value = 1 alternative hypothesis: two.sided 95 percent confidence interval: -0.2411995 0.2715025 sample estimates: prop 1 prop 2 0.5151515 0.5000000