Chapter Contents

Previous

Next
The RANK Procedure

RANKS Statement


Creates new variables for the rank values.

Requirement: If you use the RANKS statement, you must also use the VAR statement.
Default: If you omit the RANKS statement, the rank values replace the original variable values in the output data set.
Featured in: Ranking Values of Multiple Variables and 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 forth.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.