The following tables list the HISTOGRAM statement options by function. For detailed descriptions, see Dictionary of Options.
Table 5.18 lists options that display a parametric density estimate on the histogram.
Table 5.18: Parametric Distribution Options
Option |
Description |
---|---|
fits beta distribution with threshold parameter |
|
fits exponential distribution with threshold parameter |
|
fits gamma distribution with threshold parameter |
|
plots Gumbel distribution with location parameter |
|
plots inverse Gaussian distribution with mean |
|
fits lognormal distribution with threshold parameter |
|
fits normal distribution with mean |
|
plots Pareto distribution with threshold parameter |
|
plots power function distribution with threshold parameter |
|
plots Rayleigh distribution with threshold parameter |
|
fits Johnson |
|
fits Johnson |
|
fits Weibull distribution with threshold parameter |
Table 5.19 lists secondary options that specify parameters for fitted parametric distributions and that control the display of fitted curves. Specify these secondary options in parentheses after the distribution keyword. For example, the following statements fit a normal curve by using the NORMAL option:
proc capability; histogram / normal(color=red mu=10 sigma=0.5); run;
The COLOR= normal-option draws the curve in red, and the MU= and SIGMA= normal-options specify the parameters and
for the curve. Note that the sample mean and sample standard deviation are used to estimate
and
, respectively, when the MU= and SIGMA= options are not specified.
You can specify lists of values for distribution parameters to display more than one fitted curve from the same distribution family on a histogram. Option values are matched by list position. You can specify the value EST in a list of distribution parameter values to use an estimate of the parameter.
For example, the following code displays two normal curves on a histogram:
proc capability; histogram / normal(color=(red blue) mu=10 est sigma=0.5 est); run;
The first curve is red, with and
. The second curve is blue, with
equal to the sample mean and
equal to the sample standard deviation.
See the section Formulas for Fitted Curves for detailed information about the families of parametric distributions that you can fit with the HISTOGRAM statement.
Table 5.19: Distribution Options
Option |
Description |
---|---|
Options Used with All Parametric Distributions |
|
specifies color of fitted density curve |
|
fills area under fitted density curve |
|
calculates capability indices based on fitted distribution |
|
specifies line type of fitted curve |
|
prints table of midpoints of histogram intervals |
|
suppresses printed output summarizing fitted curve |
|
lists percents for which quantiles calculated from data and quantiles estimated from fitted curve are tabulated |
|
specifies character used for fitted density curve in line printer plots |
|
specifies width of fitted density curve |
|
Beta-Options |
|
specifies first shape parameter |
|
specifies second shape parameter |
|
specifies scale parameter |
|
specifies lower threshold parameter |
|
Exponential-Options |
|
specifies scale parameter |
|
specifies threshold parameter |
|
Gamma-Options |
|
specifies shape parameter |
|
specifies change in successive estimates of |
|
specifies initial value for |
|
specifies maximum number of iterations in Newton-Raphson approximation of |
|
specifies scale parameter |
|
specifies threshold parameter |
|
Gumbel-Options |
|
specifies number of samples for EDF goodness-of-fit simulation |
|
specifies seed value for EDF goodness-of-fit simulation |
|
specifies location parameter |
|
specifies scale parameter |
|
IGauss-Options |
|
specifies number of samples for EDF goodness-of-fit simulation |
|
specifies seed value for EDF goodness-of-fit simulation |
|
specifies shape parameter |
|
specifies mean |
|
Lognormal-Options |
|
specifies shape parameter |
|
specifies threshold parameter |
|
specifies scale parameter |
|
Normal-Options |
|
specifies mean |
|
specifies standard deviation |
|
Pareto-Options |
|
specifies shape parameter |
|
specifies number of samples for EDF goodness-of-fit simulation |
|
specifies seed value for EDF goodness-of-fit simulation |
|
specifies scale parameter |
|
specifies threshold parameter |
|
Power-Options |
|
specifies shape parameter |
|
specifies scale parameter |
|
specifies threshold parameter |
|
Rayleigh-Options |
|
specifies number of samples for EDF goodness-of-fit simulation |
|
specifies seed value for EDF goodness-of-fit simulation |
|
specifies scale parameter |
|
specifies threshold parameter |
|
|
|
specifies first shape parameter |
|
specifies z-value for method of percentiles |
|
specifies method of parameter estimation |
|
specifies tolerance for method of percentiles |
|
specifies second shape parameter |
|
specifies scale parameter |
|
specifies lower threshold parameter |
|
|
|
specifies first shape parameter |
|
specifies z-value for method of percentiles |
|
specifies method of parameter estimation |
|
specifies tolerance for method of percentiles |
|
specifies second shape parameter |
|
specifies the sampling range for parameter starting values in MLE optimization |
|
specifies an interation limit for MLE optimization |
|
specifies the maximum number of starting points to be used for MLE optimization |
|
prints an iteration history for MLE optimization |
|
specifies a seed value for MLE optimization |
|
specifies the optimality tolerance for MLE optimization |
|
specifies scale parameter |
|
specifies location parameter |
|
Weibull-Options |
|
specifies shape parameter c for fitted Weibull curve |
|
specifies change in successive estimates of c at which the Newton-Raphson approximation of |
|
specifies initial value for c in Newton-Raphson approximation of |
|
specifies maximum number of iterations in Newton-Raphson approximation of |
|
specifies scale parameter |
|
specifies threshold parameter |
Specify the options listed in Table 5.21 in parentheses after the keyword KERNEL to control features of kernel density estimates requested with the KERNEL option.
Table 5.21: Kernel-Options
Option |
Description |
---|---|
specifies standardized bandwidth parameter c for fitted kernel density estimate |
|
specifies color of the fitted kernel density curve |
|
fills area under fitted kernel density curve |
|
specifies type of kernel function |
|
specifies line type used for fitted kernel density curve |
|
specifies lower bound for fitted kernel density curve |
|
specifies character used for fitted kernel density curve in line printer plots |
|
specifies upper bound for fitted kernel density curve |
|
specifies line width for fitted kernel density curve |
Table 5.22 summarizes general options for the HISTOGRAM statement, including options for enhancing charts and producing output data sets.
Table 5.22: General HISTOGRAM Statement Options
Option |
Description |
---|---|
Options to Create Output Data Sets |
|
requests information about fitted curves |
|
requests information about histogram intervals |
|
creates a data set containing kernel density estimates |
|
General Histogram Layout Options |
|
scales vertical axis without considering fitted curves |
|
specifies table of contents entry for histogram grouping |
|
specifies LEGEND statement for curves |
|
lists endpoints for histogram intervals |
|
constructs hanging histogram |
|
specifies reference lines perpendicular to the horizontal axis |
|
specifies labels for HREF= lines |
|
prints table of histogram intervals |
|
lists midpoints for histogram intervals |
|
specifies number of histogram interval endpoints |
|
specifies number of histogram interval midpoints |
|
suppresses histogram bars |
|
suppresses legend for curves |
|
suppresses frame around plotting area |
|
suppresses legend |
|
suppresses plot |
|
suppresses specifications legend |
|
suppresses table of contents entries for tables produced by HISTOGRAM statement |
|
includes right endpoint in interval |
|
specifies LEGEND statement for specification limits |
|
specifies reference lines perpendicular to the vertical axis |
|
specifies labels for VREF= lines |
|
specifies scale for vertical axis |
|
Options to Enhance Graphical Output |
|
specifies annotate data set |
|
produces labels above histogram bars |
|
specifies width for the bars |
|
specifies fill color for box-and-whisker plot in bottom margin |
|
specifies fill color bottom margin plot frame |
|
specifies color for bottom margin plot |
|
specifies height of margin for bottom margin plot |
|
requests a plot in bottom margin of histogram |
|
specifies color for axis |
|
specifies color for outlines of histogram bars |
|
specifies color for filling under curve |
|
specifies color for frame |
|
specifies color for grid lines |
|
specifies colors for HREF= lines |
|
draws reference lines behind histogram bars |
|
clips histogram bars at specification limits |
|
specifies colors for STATREF= lines |
|
specifies color for text |
|
specifies colors for VREF= lines |
|
specifies description for plot in graphics catalog |
|
specifies software font for text |
|
draws reference lines in front of histogram bars |
|
creates a grid |
|
specifies AXIS statement for horizontal axis |
|
specifies height of text used outside framed areas |
|
specifies number of horizontal minor tick marks |
|
specifies offset for horizontal axis |
|
specifies vertical position of labels for HREF= lines |
|
specifies software font for text inside framed areas |
|
specifies height of text inside framed areas |
|
specifies space between histogram bars |
|
identifies LEGEND statement |
|
specifies a line type for grid lines |
|
specifies line styles for HREF= lines |
|
specifies line styles for STATREF= lines |
|
specifies line styles for VREF= lines |
|
specifies maximum number of bins to display |
|
limits the number of bins that display to within a specified number of standard deviations above and below mean of data in key cell |
|
specifies midpoints for histogram intervals |
|
specifies name for plot in graphics catalog |
|
suppresses label for horizontal axis |
|
suppresses label for vertical axis |
|
suppresses tick marks and tick mark labels for vertical axis |
|
specifies pattern for filling under curve |
|
specifies reference lines at values of summary statistics |
|
specifies labels for STATREF= lines |
|
specifies substitution character for displaying statistic values in STATREFLABELS= labels |
|
turns and vertically strings out characters in labels for vertical axis |
|
specifies AXIS statement or values for vertical axis |
|
specifies label for vertical axis |
|
specifies number of vertical minor tick marks |
|
specifies length of offset at upper end of vertical axis |
|
specifies horizontal position of labels for VREF= lines |
|
specifies line thickness for axes and frame |
|
specifies line thickness for bar outlines |
|
specifies line thickness for grid |
|
Options for ODS Graphics Output |
|
specifies footnote displayed on histogram |
|
specifies secondary footnote displayed on histogram |
|
specifies title displayed on histogram |
|
specifies secondary title displayed on histogram |
|
Options for Comparative Plots |
|
applies annotation requested in ANNOTATE= data set to key cell only |
|
specifies color for filling frame for row labels |
|
specifies color for filling frame for column labels |
|
specifies color for proportion of frequency bar |
|
specifies color for row labels of comparative histograms |
|
specifies color for column labels of comparative histograms |
|
specifies distance between tiles |
|
specifies number of columns in comparative histogram |
|
specifies number of rows in comparative histogram |
|
overlays plots for different class levels (ODS Graphics only) |
|
Options to Enhance Line Printer Plots |
|
specifies line character for HREF= lines |
|
specifies line character for VREF= lines |