Paired Z-Test of Proportions

From Q
Jump to navigation Jump to search

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

z=g1−g2σg1−g2

where:

p≈2(1−Φ(|z|)) if g1≠g2 and NaN otherwise,
sg1−g2 is computed as the Standard Error of d,
the value for the ith observation is computed as di=x1−x2,
x1,x2∈{0,1} are the observed values on the two variables.