Hi all,
I would like to generate a variable to rank analysts (ANALYS) by ISIN (the firm code) based on the STDFE.
For example for the first firm i.e. GB00BJVQC708 ANALYS with code 114434 will receive 1. For the second and next analyst since they have the same STDFE then I want to assign the mid-point of the ranks they take up. This means that the ranks need not be integers. Similarly for the second firm etc. Please see attached a subsample of the two firms
Many thanks in advance,
Best regards
George
PROC RANK will do that by default:
proc rank data=testconsitency;
ranks rank;
var stdfe;
run;
PROC RANK will do that by default:
proc rank data=testconsitency;
ranks rank;
var stdfe;
run;
Many thanks Kurt for the quick solution
Just I added a line : By ISIN
Best regards
george
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.