Previous Page | Next Page

The FREQ Procedure

Syntax: FREQ Procedure

The following statements are available in PROC FREQ:

PROC FREQ <options> ;
BY variables ;
EXACT statistic-options </ computation-options> ;
OUTPUT <OUT=SAS-data-set> options ;
TABLES requests </ options> ;
TEST options ;
WEIGHT variable </ option> ;

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

proc freq;
run;

The rest of this section gives detailed syntax information for the BY, EXACT, OUTPUT, TABLES, TEST, and WEIGHT statements in alphabetical order after the description of the PROC FREQ statement. Table 35.3 summarizes the basic function of each PROC FREQ statement.

Table 35.3 Summary of PROC FREQ Statements

Statement

Description

BY

Provides separate analyses for each BY group

EXACT

Requests exact tests

OUTPUT

Requests an output data set

TABLES

Specifies tables and requests analyses

TEST

Requests tests for measures of association and agreement

WEIGHT

Identifies a weight variable

Previous Page | Next Page | Top of Page