Help using Base SAS procedures

Proc Rank mystery

Posts: 29

Proc Rank mystery

I am executing a proc rank call in a macro that has worked very well to date:

proc rank data=fractile1 groups=&fract out=&outdata;
var &predict;
ranks Fractile;

Strangely, however, I am now working with a dataset where groups=25 and I am instead getting 24 ranks. Rank 18 is somehow getting skipped entirely, so the ranks suddenly go from 17 to 19. There are no non-missing variables in the dataset and the 25 ranks have worked just fine with a different dataset.

Is there anything else I can investigate that could cause proc rank to blip like this?
Posts: 8,862

Re: Proc Rank mystery

This Tech Support note talks about possibly NOT getting equal-sized groups with the GROUP= option:

This may come down to the differences in the data and/or would be something best explored with SAS Tech Support.

To open a track with Tech Support, fill out the form at this link:

Posts: 29

Re: Proc Rank mystery

Posted in reply to Cynthia_sas
Thanks Cynthia. That was a great help. The proc rank skipped 18 because there is a huge section of tie values that SAS assigned to rank 19.
Ask a Question
Discussion stats
  • 2 replies
  • 2 in conversation