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.
Ranking Values of Multiple Variables

Ranking Values within BY Groups

Partitioning Observations into Groups Based on Ranks


Required Argument

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.