When you specify the CHISQ option in the TABLES statement, PROC FREQ performs the following chi-square tests for each two-way table ... cell is less than or equal to that of the observed table. A ...
The chi-square value is calculated using the following formula: Using this formula, the difference between the observed and expected frequencies is calculated for each experimental outcome category.