I would like to use PROC RANK to rank multiple variables. For simplicity the code below only demonstrates using a single variable.
In the case of a tie, I would like proc rank to just iterate across the next rank values. The example code I give below gives the duplicate values (333) ranks of 3.5 and 3.5. I would like it to just assign 3 and 4 instead.
Is there a way to do this using PROC RANK? I can fix it in a data step but if I can do it within the proc then that will keep things neater.
data have;
input x;
datalines;
100
200
333
333
;
run;
proc rank data=have out=dont_want;
var x;
ranks x_rank;
run;