# Complex Samples t-Test of a Proportion

From Q

Where is the observed proportion, is the expected proportion, is estimated Standard Error of the observed proportion and is the sample size,

is the sample size:

where if and NaN otherwise.