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 , scale parameter , and shape parameters and |
|
fits exponential distribution with threshold parameter and scale parameter |
|
fits gamma distribution with threshold parameter , scale parameter , and shape parameter |
|
plots Gumbel distribution with location parameter and scale parameter |
|
plots inverse Gaussian distribution with mean and shape parameter |
|
fits lognormal distribution with threshold parameter , scale parameter , and shape parameter |
|
fits normal distribution with mean and standard deviation |
|
plots Pareto distribution with threshold parameter , scale parameter , and shape parameter |
|
plots power function distribution with threshold parameter , scale parameter , and shape parameter |
|
plots Rayleigh distribution with threshold parameter and scale parameter |
|
fits Johnson distribution with threshold parameter , scale parameter , and shape parameters and |
|
fits Johnson distribution with location parameter , scale parameter , and shape parameters and |
|
fits Weibull distribution with threshold parameter , scale parameter , and shape parameter c |
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 for fitted beta curve |
|
specifies second shape parameter for fitted beta curve |
|
specifies scale parameter for fitted beta curve |
|
specifies lower threshold parameter for fitted beta curve |
|
Exponential-Options |
|
specifies scale parameter for fitted exponential curve |
|
specifies threshold parameter for fitted exponential curve |
|
Gamma-Options |
|
specifies shape parameter for fitted gamma curve |
|
specifies change in successive estimates of at which the Newton-Raphson approximation of terminates |
|
specifies initial value for in Newton-Raphson approximation of |
|
specifies maximum number of iterations in Newton-Raphson approximation of |
|
specifies scale parameter for fitted gamma curve |
|
specifies threshold parameter for fitted gamma curve |
|
Gumbel-Options |
|
specifies number of samples for EDF goodness-of-fit simulation |
|
specifies seed value for EDF goodness-of-fit simulation |
|
specifies location parameter for fitted Gumbel curve |
|
specifies scale parameter for fitted Gumbel curve |
|
IGauss-Options |
|
specifies number of samples for EDF goodness-of-fit simulation |
|
specifies seed value for EDF goodness-of-fit simulation |
|
specifies shape parameter for fitted inverse Gaussian curve |
|
specifies mean for fitted inverse Gaussian curve |
|
Lognormal-Options |
|
specifies shape parameter for fitted lognormal curve |
|
specifies threshold parameter for fitted lognormal curve |
|
specifies scale parameter for fitted lognormal curve |
|
Normal-Options |
|
specifies mean for fitted normal curve |
|
specifies standard deviation for fitted normal curve |
|
Pareto-Options |
|
specifies shape parameter for fitted Pareto curve |
|
specifies number of samples for EDF goodness-of-fit simulation |
|
specifies seed value for EDF goodness-of-fit simulation |
|
specifies scale parameter for fitted Pareto curve |
|
specifies threshold parameter for fitted Pareto curve |
|
Power-Options |
|
specifies shape parameter for fitted power function curve |
|
specifies scale parameter for fitted power function curve |
|
specifies threshold parameter for fitted power function curve |
|
Rayleigh-Options |
|
specifies number of samples for EDF goodness-of-fit simulation |
|
specifies seed value for EDF goodness-of-fit simulation |
|
specifies scale parameter for fitted Rayleigh curve |
|
specifies threshold parameter for fitted Rayleigh curve |
|
-Options |
|
specifies first shape parameter for fitted curve |
|
specifies z-value for method of percentiles |
|
specifies method of parameter estimation |
|
specifies tolerance for method of percentiles |
|
specifies second shape parameter for fitted curve |
|
specifies scale parameter for fitted curve |
|
specifies lower threshold parameter for fitted curve |
|
-Options |
|
specifies first shape parameter for fitted curve |
|
specifies z-value for method of percentiles |
|
specifies method of parameter estimation |
|
specifies tolerance for method of percentiles |
|
specifies second shape parameter for fitted curve |
|
specifies scale parameter for fitted curve |
|
specifies location parameter for fitted curve |
|
Weibull-Options |
|
specifies shape parameter c for fitted Weibull curve |
|
specifies change in successive estimates of c at which the Newton-Raphson approximation of terminates |
|
specifies initial value for c in Newton-Raphson approximation of |
|
specifies maximum number of iterations in Newton-Raphson approximation of |
|
specifies scale parameter for fitted Weibull curve |
|
specifies threshold parameter for fitted Weibull curve |
Table 5.20: Kernel Density Estimation Options
Option |
Description |
---|---|
fits kernel density estimates |
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 |
|
Options to Enhance Line Printer Plots |
|
specifies line character for HREF= lines |
|
specifies line character for VREF= lines |