Monday, 28 March 2016

Proc SQL Tricks:1

Draw a horizontal histogram :

A histogram visualizes the distribution pattern of a variable. PROC SQL can draw a horizontal histogram
by showing the frequency bars with a few asterisks for each level of the variable age.

procsql;
 selectage, repeat('*',count(*)*4) as Frequency
  fromSashelp.class
   groupby age
    orderby age;
quit;


OUTPUT:

No comments:

Post a Comment