I'm conducting a chi-squared goodness of fit test comparing the following observed cell counts to the expected count values.
Observed
X
Y
Total
No
209,916
1,191
211,107
Yes
7,645
461
8,106
Total
217,561
1,652
219,213
Expected
X
Y
Total
No
209,516.100
1,590.913
211,107
Yes
8,044.913
61.087
8,106
Total
217,561
1,652
219,213
Is it possible to find the chi-square p-value for 2x2 or larger multinomial tables with specified expected values using proc freq?
I ended up hand calculating the chi-square test statistic in the above example (= 2,739.234) and then ran the following code for chi-square dbn with 1 df:
data _null_;
pvalue = 1 - PROBCHI(2739.234, 1);
put pvalue;
run;
The resulting p-value was so small SAS rounded down to zero.
... View more