Hi, I am trying to group the data into 10 groups based upon the ranking. While I initially rank the data & grouping them it is working fine & I am able to 10 ranks in the output the code that I used is: proc rank data=mylib.result groups=10 out=mylib.frank ties=mean; var P_1; ranks ranks; run; But when I am sorting the data into groups then I surprisingly see that the entire data is grouped into 3 groups(7,8,9) and the sorting happens into only as 3 groups. I am not getting where I am doing a mistake The code that I am using for sorting the data is proc sort data=mylib.frank out=mylib.logsor; by descending ranks; run; please help
... View more