Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
HISTOGRAM Statement

Summary of Options

The following tables list the HISTOGRAM statement options by function. For detailed descriptions, see "Dictionary of Options".

Parametric Density Estimation Options

Table 4.1 lists options that display a parametric density estimate on the histogram.

Table 4.1: Parametric Distribution Options
BETA(beta-options)fits beta distribution with threshold parameter \theta,scale parameter \sigma,and shape parameters \alpha and \beta
EXPONENTIAL(exponential-options)fits exponential distribution with threshold parameter \theta and scale parameter \sigma
GAMMA(gamma-options)fits gamma distribution with threshold parameter \theta,scale parameter \sigma,and shape parameter \alpha
LOGNORMAL(lognormal-options)fits lognormal distribution with threshold parameter \theta,scale parameter \zeta,and shape parameter \sigma
NORMAL(normal-options)fits normal distribution with mean \mu and standard deviation \sigma
SB(SB-options)fits Johnson SB distribution with threshold parameter \theta,scale parameter \sigma,and shape parameters \delta and \gamma
SU(SU-options)fits Johnson SU distribution with location parameter \theta,scale parameter \sigma,and shape parameters \delta and \gamma
WEIBULL(Weibull-options)fits Weibull distribution with threshold parameter \theta,scale parameter \sigma,and shape parameter c

Table 4.2 through Table 4.10 list options that specify parameters for fitted parametric distributions and that control the display of fitted curves. Specify these options in parentheses after the distribution keyword. For example, the following statements fit a normal curve with the keyword NORMAL:

   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 \mu=10 and \sigma=0.5 for the curve. Note that the sample mean and sample standard deviation are used to estimate \mu and \sigma, respectively, when the MU= and SIGMA= options are not specified.

Table 4.2: Options Used with All Parametric Distribution Options
COLOR=colorspecifies color of fitted density curve
FILLfills area under fitted density curve
INDICEScalculates capability indices based on fitted distribution
L=linetypespecifies line type of fitted curve
MIDPERCENTSprints table of midpoints of histogram intervals
NOPRINTsuppresses printed output summarizing fitted curve
PERCENTS=value-listlists percents for which quantiles calculated from data and quantiles estimated from fitted curve are tabulated
SYMBOL='character'specifies character used to plot fitted density curve if histogram is produced on a line printer
W=nspecifies width of fitted density curve

Table 4.3: Beta-Options
ALPHA=valuespecifies first shape parameter \alpha for fitted beta curve
BETA=valuespecifies second shape parameter \beta for fitted beta curve
SIGMA=value|ESTspecifies scale parameter \sigmafor fitted beta curve
THETA=value|ESTspecifies lower threshold parameter \theta for fitted beta curve

Table 4.4: Exponential-Options
SIGMA=valuespecifies scale parameter \sigma for fitted exponential curve
THETA=value|ESTspecifies threshold parameter \theta for fitted exponential curve

Table 4.5: Gamma-Options
ALPHADELTA=valuespecifies change in successive estimates of \alphaat which the Newton-Raphson approximation of \hat{\alpha} terminates
ALPHAINITIAL=valuespecifies initial value for \alpha in Newton-Raphson approximation of \hat{\alpha}
MAXITER=nspecifies maximum number of iterations in Newton-Raphson approximation of \hat{\alpha}
SIGMA=valuespecifies scale parameter \sigma for fitted gamma curve
ALPHA=valuespecifies shape parameter \alpha for fitted gamma curve
THETA=value|ESTspecifies threshold parameter \theta for fitted gamma curve

Table 4.6: Lognormal-Options
ZETA=valuespecifies scale parameter \zeta for fitted lognormal curve
SIGMA=valuespecifies shape parameter \sigma for fitted lognormal curve
THETA=value|ESTspecifies threshold parameter \theta for fitted lognormal curve

Table 4.7: Normal-Options
MU=valuespecifies mean \mu for fitted normal curve
SIGMA=valuespecifies standard deviation \sigma for fitted normal curve

Table 4.8: SB-Options
DELTA=valuespecifies first shape parameter \delta for fitted SB curve
FITINTERVAL=valuespecifies z-value for method of percentiles
FITMETHOD=MLE| PERCENTILE| MOMENTSspecifies method of parameter estimation
GAMMA=valuespecifies second shape parameter \gamma for fitted SB curve
SIGMA=value|ESTspecifies scale parameter \sigmafor fitted SB curve
THETA=value|ESTspecifies lower threshold parameter \theta for fitted SB curve
FITTOLERANCE=valuespecifies tolerance for method of percentiles

Table 4.9: SU-Options
DELTA=valuespecifies first shape parameter \delta for fitted SU curve
FITINTERVAL=valuespecifies z-value for method of percentiles
FITMETHOD=MLE| PERCENTILE| MOMENTSspecifies method of parameter estimation
GAMMA=valuespecifies second shape parameter \gamma for fitted SU curve
SIGMA=value|ESTspecifies scale parameter \sigmafor fitted SU curve
THETA=value|ESTspecifies lower threshold parameter \theta for fitted SU curve
FITTOLERANCE=valuespecifies tolerance for method of percentiles

Table 4.10: Weibull-Options
C=valuespecifies shape parameter c for fitted Weibull curve
CDELTA=valuespecifies change in successive estimates of c at which the Newton-Raphson approximation of \hat{c} terminates
CINITIAL=valuespecifies initial value for c in Newton-Raphson approximation of \hat{c}
MAXITER=nspecifies maximum number of iterations in Newton-Raphson approximation of \hat{c}
SIGMA=valuespecifies scale parameter \sigma for fitted Weibull curve
THETA=value|ESTspecifies threshold parameter \theta for fitted Weibull curve

Nonparametric Density Estimation Options

Table 4.11: Kernel Density Estimation Options
KERNEL(kernel-options)fits kernel density estimates

Specify the options listed in Table 4.12 in parentheses after the keyword KERNEL to control features of kernel density estimates requested with the KERNEL option.

Table 4.12: Kernel-Options
C=value | MISEspecifies standardized bandwidth parameter c for fitted kernel density estimate
COLOR=colorspecifies color of the fitted kernel density curve
FILLfills area under fitted kernel density curve
K=NORMAL | QUADRATIC | TRIANGULARspecifies type of kernel function
L=linetypespecifies line type used for fitted kernel density curve
SYMBOL='character'specifies character used to plot fitted kernel density curve if the histogram is produced on a line printer
W=nspecifies line width for fitted kernel density curve

General Options

Table 4.13 through Table 4.16 summarize general options for the HISTOGRAM statement, including options for enhancing charts and producing output data sets.

Table 4.13: General Histogram Layout Options
CURVELEGEND=name | NONEspecifies LEGEND statement for curves
FORCEHISTforces creation of histogram
HANGINGconstructs hanging histogram
HREF=value-listspecifies reference lines perpendicular to the horizontal axis
HREFLABELS='label1' ... 'labeln'specifies labels for HREF=lines
MIDPERCENTSprints table of histogram intervals
MIDPOINTS=value-listlists midpoints for histogram intervals
NOBARSsuppresses histogram bars
NOCURVELEGENDsuppresses legend for curves
NOFRAMEsuppresses frame around plotting area
NOLEGENDsuppresses legend
NOPLOTsuppresses plot
NOSPECLEGENDsuppresses specifications legend
RTINCLUDEincludes right endpoint in interval
SPECLEGEND=name | NONEspecifies LEGEND statement for specification limits
VREF=value-listspecifies reference lines perpendicular to the vertical axis
VREFLABELS='label1' ... 'labeln'specifies labels for VREF= lines
VSCALE=COUNT | PERCENT | PROPORTIONspecifies scale for vertical axis

Table 4.14: Options to Create Output Data Sets
OUTFIT=SAS-data-setspecifies information on fitted curves
OUTHISTOGRAM=SAS-data-setspecifies information on histogram intervals

Table 4.15: Options to Enhance Histograms Produced on Line Printers
HREFCHAR='character'specifies line character for HREF=lines
VREFCHAR='character'specifies line character for VREF= lines

Table 4.16: Options to Enhance Histograms Produced on Graphics Devices
ANNOTATE=SAS-data-setspecifies annotate data set
CAXIS=colorspecifies color for axis
CBARLINE=colorspecifies color of outlines of histogram bars
CFILL=colorspecifies color for filling under curve
CFRAME=colorspecifies color for frame
CHREF=colorspecifies color for HREF=lines
CTEXT=colorspecifies color for text
CVREF=colorspecifies color for VREF= lines
DESCRIPTION='string'specifies description for plot in graphics catalog
FONT=fontspecifies software font for text
HAXIS=namespecifies AXIS statement for horizontal axis
HMINOR=nspecifies number of horizontal minor tick marks
LEGEND=name | NONEidentifies LEGEND statement
LHREF=linetypespecifies line style for HREF=lines
LVREF=linetypespecifies line style for VREF= lines
MIDPTAXIS=namespecifies name of AXIS statement for horizontal axis
NAME='string'specifies name for plot in graphics catalog
PCTAXIS=name|value-listspecifies AXIS statement or values for vertical axis
PFILL=patternspecifies pattern for filling under curve
VAXIS=name|value-listspecifies AXIS statement or values for vertical axis
VMINOR=nspecifies number of vertical minor tick marks
WBARLINE=nspecifies line thickness for bar outlines

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.