Chapter Contents |
Previous |
Next |
The MEANS Procedure |
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 |
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 |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.