Chapter Contents |
Previous |
Next |
The TABULATE Procedure |
Alias: | VARIABLES |
Tip: | You can use multiple VAR statements. |
VAR analysis-variable(s) </ option(s)>; |
Required Arguments |
If an observation contains a missing value for an analysis variable, PROC TABULATE omits that value from calculations of all statistics except N (the number of observations with nonmissing variable values) and NMISS (the number of observations with missing variable values). For example, the missing value does not increase the SUM, and it is not counted when you are calculating statistics such as the MEAN.
Options |
Note: When you use STYLE= in the VAR
statement, it differs slightly from its use
in the PROC TABULATE statement. In the VAR statement, the parent of the heading
is the heading under which the current heading is nested.
Alias: | S= |
Restriction: | This option affects only the HTML and Printer output. |
Tip: | To override a style element that is specified in the VAR statement, you can specify a style element in the related TABLE statement dimension expression. |
Featured in: | Specifying Style Elements for HTML Output |
Weight value... | PROC TABULATE... |
0 | counts the observation in the total number of observations |
less than 0 | converts the value to zero and counts the observation in the total number of observations |
missing | excludes the observation |
Restriction: | To compute weighted quantiles, use QMETHOD=OS in the PROC statement. |
Tip: | When you use the WEIGHT= option, consider which value of the VARDEF= option is appropriate (see the discussion of VARDEF= ). |
Tip: | Use the WEIGHT option in multiple VAR statements to specify different weights for the analysis variables. |
Note: Prior to Version 7 of the SAS System, the procedure
did not exclude the observations with missing weights from the count of
observations.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.