Hi, I'm not sure how to answer the question from the picture below. Any help is greatly appreciated!
Here is how I coded it but it gives me incorrect output.
data aa; input LEAGUE$4. NONCONF; cards; ACC 120 B10 110 B8 50 P10 22 EST 118 ; proc print; run; proc rank data=aa out=bb groups=2; proc print ; run;
proc rank data=aa out=bb groups=2;
var nonconf;
ranks half;
run;
proc rank data=aa out=bb groups=2;
var nonconf;
ranks half;
run;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.