Previous Page | Next Page

The SUMMARY Procedure

Syntax: SUMMARY Procedure

Tip: Supports the Output Delivery System. See Output Delivery System: Basic Concepts in SAS Output Delivery System: User's Guide for details.
Tip: You can use the ATTRIB, FORMAT, LABEL, and WHERE statements. See Statements with the Same Function in Multiple Procedures for details. You can also use any global statements. See Global Statements for a list.
Tip: Full syntax descriptions are in Syntax: MEANS Procedure.
Table of Contents: The SUMMARY Procedure

PROC SUMMARY <option(s)> <statistic-keyword(s)>;
BY <DESCENDING> variable-1<...<DESCENDING> variable-n>
CLASS variable(s) </ option(s)>;
FREQ variable;
ID variable(s);
OUTPUT <OUT=SAS-data-set><output-statistic-specification(s)>
<id-group-specification(s)> <maximum-id-specification(s)>
<minimum-id-specification(s)></ option(s)> ;
TYPES request(s);
VAR variable(s)</ WEIGHT=weight-variable>;
WAYS list;
WEIGHT variable;

Compute descriptive statistics for variables across all observations or within groups of observations PROC SUMMARY
Calculate separate statistics for each BY group BY
Identify variables whose values define subgroups for the analysis CLASS
Identify a variable whose values represent the frequency of each observation FREQ
Include additional identification variables in the output data set ID
Create an output data set that contains specified statistics and identification variables OUTPUT
Identify specific combinations of class variables to use to subdivide the data TYPES
Identify the analysis variables and their order in the results VAR
Specify the number of ways to make unique combinations of class variables WAYS
Identify a variable whose values weight each observation in the statistical calculations WEIGHT


Full descriptions of the statements for PROC SUMMARY are in the documentation for PROC MEANS.  [cautionend]

Previous Page | Next Page | Top of Page