![]() Chapter Contents |
![]() Previous |
![]() Next |
The RANK Procedure |
Procedure features: |
| ||||||||
Other features: |
|
Program |
options nodate pageno=1 linesize=80 pagesize=60;
![]() | proc rank data=elect out=results ties=low descending; |
![]() | by district; |
![]() | var vote years; ranks VoteRank YearsRank; run; |
![]() | proc print data=results n; by district; title 'Results of City Council Election'; run; |
Output |
In the second district, Hinkley and Thrash tied with 912 votes. They both receive a rank of 3 because TIES=LOW. |
![]() |
![]() |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.