T-Test of a Proportion

From Q
Jump to navigation Jump to search

Where g is the observed proportion and e is the expected proportion, n is the sample size and deff is Extra deff:

t=gedeffg(1g)/n

where p2Pr(tn1|t|) if ge and NaN otherwise,

Where Bessel's correction is applied:

t=pedeffg(1g)/(n1)