Chapter Contents


The MEANS Procedure

TYPES Statement

Identifies which of the possible combinations of class variables to generate.

Main discussion: Output Data Set
Requirement: CLASS statement
Featured in: Computing Descriptive Statistics with Class Variables , Using Multi-label Value Formats with Class Variables , and Identifying the Top Three Extreme Values with the Output Statistics

TYPES request(s);

Required Arguments

specifies which of the [IMAGE] combinations of class variables PROC MEANS uses to create the types, where [IMAGE] is the number of class variables. A request is composed of one class variable name, several class variable names separated by asterisks, or ().

To request class variable combinations quickly, use a grouping syntax by placing parentheses around several variables and joining other variables or variable combinations. For example, the following statements illustrate grouping syntax:

Request Equivalent to
types A*(B C); types A*B A*C;
types (A B)*(C D); types A*C A*D B*C B*D;
types (A B C)*D; types A*D B*D C*D;

Interaction The CLASSDATA= option places constraints on the NWAY type. PROC MEANS generates all other types as if derived from the resulting NWAY type.
Tip: Use ( ) to request the overall total (_TYPE_=0).
Tip: If you do not need all types in the output data set, use the TYPES statement to specify specific subtypes rather than applying a WHERE clause to the data set. This saves time and space.

Chapter Contents



Top of Page

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