In this example, you
want to rank the students in your class by age and height.
To create this example:
-
In the
Tasks section,
expand the
Data folder and double-click
Rank
Data. The user interface for the Rank Data task opens.
-
On the
Data tab,
select the
SASHELP.CLASS data set.
-
Assign columns to these
roles:
-
To run the task, click
.
The Rank Data task creates
an output data set. In SAS Studio, this data set opens on the
WORK.Rank tab.
This data set contains the additional rank_Height column, which shows
where that student ranks within her age group. For example, in the
11-year-old age group, Joyce is ranked number one. In the 12-year-old
age group, Louise is ranked number 1.