Complex Samples t-Test of a Proportion

From Q
Jump to: navigation, search

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

n is the sample size:

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

where p = 2 \Pr(t_{n-1} \ge t) if  g \ne e and NaN otherwise.