SAS/STAT Software

FREQ Procedure

The FREQ procedure produces one-way to n-way frequency and contingency (crosstabulation) tables. For two-way tables, PROC FREQ computes tests and measures of association. For n-way 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 goodness-of-fit tests for equal proportions or specified null proportions for one-way frequency tables
  • provides confidence limits and tests for binomial proportions, including tests for noninferiority and equivalence for one-way frequency tables
  • compute various statistics to examine the relationships between two classification variables. The statistics for contingency tables include the following:
    • chi-square 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
    • Cochran-Mantel-Haenszel 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 p-values, exact mid-p-values, 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