One Sample Score Test of a Proportion

From Q
Jump to navigation Jump to search

Where [math]\displaystyle{ g }[/math] is the observed proportion, [math]\displaystyle{ e }[/math] is the expected proportion, [math]\displaystyle{ n }[/math] is the effective sample size, and [math]\displaystyle{ d_{eff} }[/math] is Extra deff:

[math]\displaystyle{ z = \frac{g - e}{\sqrt{d_{eff}e(1-e)/n}} }[/math]

where [math]\displaystyle{ p \approx 2(1-\Phi(|z|)) }[/math] if [math]\displaystyle{ |g - e| \ge 0.0001 }[/math] and NaN otherwise.