Creating High-Resolution Histograms
Understanding How to Use the HISTOGRAM Statement
A histogram is similar to a vertical bar chart. This
type of bar chart emphasizes the individual ranges of continuous numeric
variables and enables you to examine the distribution of your data.
The HISTOGRAM statement
in a PROC UNIVARIATE step produces histograms and comparative histograms.
PROC UNIVARIATE creates a histogram by dividing the data into intervals
of equal length, counting the number of observations in each interval,
and plotting the counts as vertical bars that are centered around
the midpoint of each interval.
If you use the HISTOGRAM
statement without any options, then PROC UNIVARIATE automatically
does the following:
-
scales the vertical ...
Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.