The FREQTAB Procedure

Syntax: FREQTAB Procedure

The following statements are available in the FREQTAB procedure:

  • PROC FREQTAB <options> ;

  • BY variables;

  • EXACT statistic-options </ computation-options> ;

  • OUTPUT <OUT=SAS-data-set> output-options;

  • TABLES requests </ options> ;

  • TEST options;

  • WEIGHT variable </ option> ;

The PROC FREQTAB statement is the only required statement for the FREQTAB procedure. If you specify the following statements, PROC FREQTAB produces a one-way frequency table for each variable in the most recently created data table.

proc freqtab;
run;

Table 2 summarizes the basic functions of the procedure statements. The following sections provide detailed syntax information for the BY, EXACT, OUTPUT, TABLES, TEST, and WEIGHT statements in alphabetical order after the description of the PROC FREQTAB statement.

Table 2: Summary of PROC FREQTAB Statements

Statement Description
BY Provides separate analyses for each BY group
EXACT Requests exact tests
OUTPUT Requests an output data set of statistics
TABLES Specifies tables and requests analyses
TEST Requests tests for measures of association and agreement
WEIGHT Identifies a weight variable