Dear community, I would like to know which test SAS is using with a PROC FREQ and a Binomial option ? It seems that is a Wald test: "The BINOMIAL option also produces an asymptotic Wald test that the proportion equals 0.5". If we compare with prop.test R function, which seems a Wilson test, we get the same results than SAS. Moreover, if it's really a Wald test, why we get some unconformity between the test and the confidence limits as in this exemple: /* Data */
data ACT;
do i=1 to 48; ACTIVE="0"; output; end;
do i=1 to 1; ACTIVE="1"; output; end;
run;
/* Bilateral 5% */
proc freq data=ACT;
tables ACTIVE / binomial(all level="0" p=.9) alpha=0.05;
run;
/* Results */
Confidence Limits for the Binomial Proportion
Proportion = 0.9796
Type 95% Confidence Limits
Agresti-Coull 0.8831 1.0000
Clopper-Pearson (Exact) 0.8915 0.9995
Jeffreys 0.9086 0.9978
Wald 0.9400 1.0000
Wilson 0.8931 0.9964
Test of H0: Proportion = 0.9
ASE under H0 0.0429
Z 1.8571
One-sided Pr > Z 0.0316
Two-sided Pr > |Z| 0.0633 P-value of 0.06 is not significant whereas Wald's CL [0.94 ; 1.00] is significant. Could please enlighten me on this topic? Many thanks in advance, Alex
... View more