Hi @ballardw ! Thank you for the help. With some modification, the code you provided worked, although I had to create another variable called "rank" from the variable of importance output and merge it back to that dataset. I used that "rank" variable to sort, since I didn't have the Gini variable in the dataset. data ranking; length Variable $100; INPUT rank Variable $; CARDS; 1 high_PA_baseline 2 early_weight_loss .... ; RUN; proc sort data=Variable_Importance; by Variable; run; proc sort data=ranking; by Variable; run; *Merge; data plot; length Variable $100; merge Variable_Importance(in=x) ranking(in=y); by Variable; if x=y; run; proc sgplot data=plot; scatter x=AAEOOB y=Variable ; run; proc sort data=plot out=plot2; by AAEOOB descending rank; run; proc sgplot data=plot2; scatter x=AAEOOB y=Variable ; run;
... View more