Previous Page | Next Page

The RANK Procedure

RANKS Statement


Creates new variables for the rank values.
Default: If you omit the RANKS statement, the rank values replace the original variable values in the output data set.
Requirement: If you use the RANKS statement, you must also use the VAR statement.
Featured in:

Ranking Values of Multiple Variables

Ranking Values within BY Groups


RANKS new-variables(s);


Required Arguments

new-variable(s)

specifies one or more new variables that contain the ranks for the variable(s) listed in the VAR statement. The first variable listed in the RANKS statement contains the ranks for the first variable listed in the VAR statement. The second variable listed in the RANKS statement contains the ranks for the second variable listed in the VAR statement, and so on.

Previous Page | Next Page | Top of Page