Some HISTOGRAM options and annotation are displayed incorrectly withENDPOINTS=


When the ENDPOINTS= option is specified on the HISTOGRAM statement in PROC UNIVARIATE, the HREF= option will draw reference lines in the wrong positions along the horizontal axis. Also, if you overlay any of the density curves, the curves will be drawn incorrectly. Finally, if you specify an ANNOTATE= data set that uses XSYS='1' or XSYS='2', the annotation will be placed in the incorrect position in the x-direction. The reference lines, curves and the annotation are all applied according to a different scale than the actual horizontal axis scale used to draw the histogram. The histograms themselves, as well as the printed output and output data sets, are all correct.

To circumvent this problem, use the MIDPOINTS= option on the HISTOGRAM statement instead of the ENDPOINTS= option. If SAS/QC is available, then PROC CAPABILITY can be used to get the correct results with the ENDPOINTS= option.