Previous Page | Next Page

The RANK Procedure

VAR Statement


Specifies the input variables.
Default: If you omit the VAR statement, PROC RANK computes ranks for all numeric variables in the input data set.
Featured in:

Ranking Values of Multiple Variables

Ranking Values within BY Groups

Partitioning Observations into Groups Based on Ranks


VAR data-set-variables(s);


Required Arguments

data-set-variable(s)

specifies one or more variables for which ranks are computed.


Using the VAR Statement with the RANKS Statement

The VAR statement is required when you use the RANKS statement. Using these statements together creates the ranking variables named in the RANKS statement that corresponds to the input variables specified in the VAR statement. If you omit the RANKS statement, the rank values replace the original values in the output data set.

Previous Page | Next Page | Top of Page