Chapter Contents

Previous

Next
The FREQ Procedure

Procedure Syntax


Tip: Supports the Output Delivery System (see Chapter 2, "Fundamental Concepts for Using Base SAS Procedures")
Reminder: You can use the FORMAT, LABEL, and WHERE statements. See Statements with the Same Function in Multiple Procedures for details. You can also use any global statements as well. See Global Statements for a list.

PROC FREQ <option(s)>;
BY <DESCENDING> variable-1 <...<DESCENDING> variable-n> <NOTSORTED>;
EXACT statistic-keyword(s) </ option(s)>;
OUTPUT statistic-keyword(s) <OUT=SAS-data-set>;
TABLES request(s) </ option(s)>;
TEST statistic-keyword(s);
WEIGHT variable;

To do this Use this statement
Calculate separate frequency or crosstabulation tables for each BY group BY
Request exact tests for specified statistics EXACT
Create an output data set that contains specified statistics OUTPUT
Specify frequency or crosstabulation tables and request tests and measures of association TABLES
Request asymptotic tests for measures of association and agreement TEST
Identify a variable whose values weight each observation WEIGHT


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.