I have a similar problem: how to sort the means of a variable in descending order? My goal is to organize the 2nd table (see output below), sort the table in the order of descending mean, so 965 at the bottom while 979 at the top. I tried the method using proc sort (see my code) but the program didn't recognize Mean as a variable. Thank you so much for all of your help! proc means data=pg1.storm_final
N Mean Min maxdec=0;
var MinPressure;
ods output Summary=N_avg_min_Summary;
where Season >=2010;
class Season Ocean;
ways 1;
run;
proc sort data=N_avg_min_Summary;
by descending Mean;
run;
... View more