FREQ Procedure
The FREQ procedure produces oneway to nway frequency and contingency (crosstabulation) tables.
For twoway tables, PROC FREQ computes tests and measures of association. For nway tables, PROC FREQ provides
stratified analysis by computing statistics across, as well as within, strata.
The following are highlights of the FREQ procedure's features:
 computes goodnessoffit tests for equal proportions or specified null proportions for oneway frequency tables
 provides confidence limits and tests for binomial proportions, including tests for noninferiority
and equivalence for oneway frequency tables
 compute various statistics to examine the relationships between two classification variables. The statistics for contingency
tables include the following:
 chisquare tests and measures
 measures of association
 risks (binomial proportions) and risk differences for 2 x 2 tables
 odds ratios and relative risks for 2 x 2 tables
 tests for trend
 tests and measures of agreement
 CochranMantelHaenszel statistics

 computes asymptotic standard errors, confidence intervals, and tests for measures
of association and measures of agreement
 computes score confidence limits for odds ratios
 computes exact pvalues, exact midpvalues, and confidence intervals for many test statistics and measures
 performs BY group processing, which enables you to obtain separate analyses on grouped observations
 accepts either raw data or cell count data to produce frequency and crosstabulation tables
 creates a SAS data set that contains the computed statistics
 creates a SAS data set that corresponds to any output table
 automatically creates graphs by using ODS Graphics

For further details see the FREQ Procedure
Examples