Complex Samples Z-Test of a Proportion

From Q
Jump to: navigation, search

Where g is the observed proportion, e is the expected proportion, s_p is the estimated Standard Error of the observed proportion and n is the sample size,

n is the sample size:

 z = \frac{g - e}{s_p}

where p = 2(1-\Phi(|z|)) if g \ne e and NaN otherwise.