proc univariate data =sample.college NOPRINT;
class region type;
histogram tuition / normal (color=red)
cfill =itgray
ctext =blue;
inset N= ‘Number of colleges’ Median (8.2) mean (8.2) std = ‘Standard Deviation’ (8.3) / position = ne;
run;
The following histograms illustrate the distribution of tuition by region and type of college. You can get a general understanding that private colleges are much more expensive than the public colleges in certain region.