Usually, you would compare the distribution of a variable for groups defined by some other variable:
proc rank data=sashelp.heart(keep=weight cholesterol) out=work.heart_deciles groups=10;
VAR weight;
RANKS weight_decile;
run;
proc sort data=work.heart_deciles;
by weight_decile;
run;
proc sgpanel data=work.heart_deciles;
title "Cholesterol Distribution per Decile";
where weight_decile in (0,9);
panelby weight_decile / columns=1;
histogram Cholesterol;
density Cholesterol / type=kernel;
run;
![PGStats_0-1629596293620.png PGStats_0-1629596293620.png](https://communities.sas.com/t5/image/serverpage/image-id/62821i69684C1C37EE83EC/image-size/large?v=v2&px=999)
PG