Paired Z-Test of Proportions

From Q
Jump to navigation Jump to search

Where g1 and g2 are the two proportions and sg1g2 is an estimate of the standard error of the difference between the proportions:

z=g1g2σg1g2

where:

p2(1Φ(|z|)) if g1g2 and NaN otherwise,
sg1g2 is computed as the Standard Error of d,
the value for the ith observation is computed as di=x1x2,
x1,x2{0,1} are the observed values on the two variables.