One Sample Score Test of a Proportion

From Q
Jump to navigation Jump to search

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

z=g−edeffe(1−e)/n

where p≈2(1−Φ(|z|)) if |g−e|≥0.0001 and NaN otherwise.