Creating Tabular Reports |
Specifying
Variables![]() ![]() |
After you invoke PROC TABULATE and identify your data set, you need to
specify variables to create your tables.
As you saw earlier, you need to distinguish between variables that classify your data (into groups, or categories, or classes) and variables used for arithmetic analysis. These are called class variables and analysis variables, respectively. You list
|
General form, CLASS and VAR statements:
CLASS variable(s);
|
The statements below specify that values of Sex be used
as categories and that Age , Height , and
Weight be used for analysis.
class sex; var age height weight; Note that the CLASS and VAR statements do not specify the order in which variables appear in the table.
Specifying some variables is relatively easy, as shown in the following
statements.
var aerclass walkjogrun swim; class date; But it's not always so simple to decide which variables to specify as class variables and which to specify as analysis variables. |
![]() ![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.