COMPHISTOGRAM Statement: CAPABILITY Procedure

Summary of Options

The following tables list the COMPHIST statement options by function. For complete descriptions, see Dictionary of Options.

Distribution Options

Table 5.13 lists the options for requesting that a fitted normal distribution or a kernel density estimate be overlaid on the comparative histogram.

Table 5.13: Density Estimation Options

Option

Description

KERNEL(kernel-options)

fits kernel density estimates

NORMAL(normal-options)

fits normal distribution with mean $\mu $ and standard deviation $\sigma $


You can specify the secondary options listed in Table 5.14 in parentheses after the KERNEL option to control features of kernel density estimates.

Table 5.14: Kernel-Options

Option

Description

C=

specifies standardized bandwidth parameter c for kernel density estimate

COLOR=

specifies color of the kernel density curve

FILL

fills area under kernel density curve

K=

specifies NORMAL, TRIANGULAR, or QUADRATIC kernel

L=

specifies line type used for kernel density curve

LOWER=

specifies lower bound for kernel density curve

UPPER=

specifies upper bound for kernel density curve

W=

specifies line width for kernel density curve


You can specify the secondary options listed in Table 5.15 in parentheses after the NORMAL option to control features of fitted normal distributions.

Table 5.15: Normal-Options

Option

Description

COLOR=

specifies color of normal curve

FILL

fills area under normal curve

L=

specifies line type of normal curve

MU=

specifies mean $\mu $ for fitted normal curve

SIGMA=

specifies standard deviation $\sigma $ for fitted normal curve

W=

specifies width of normal curve


For example, the following statements use the NORMAL option to fit a normal curve in each cell of the comparative histogram:

proc capability;
   comphistogram / class = machine
                   normal(color=red l=2);
run;

The COLOR= normal-option draws the curve in red, and the L= normal-option specifies a line style of 2 (a dashed line) for the curve. In this example, maximum likelihood estimates are computed for the normal parameters $\mu $ and $\sigma $ for each cell because these parameters are not specified.

General Options

Table 5.16: General COMPHISTOGRAM Statement Options

Option

Description

Classification Options

CLASS=

specifies classification variables

CLASSKEY=

specifies key cell

MISSING1

requests that missing values of first CLASS= variable be treated as a level of that CLASS= variable

MISSING2

requests that missing values of second CLASS= variable be treated as a level of that CLASS= variable

ORDER1=

specifies display order for values of the first CLASS= variable

ORDER2=

specifies display order for values of the second CLASS= variable

Layout Options

BARLABEL=

produces labels above histogram bars

BARWIDTH=

specifies width for the bars

CLIPSPEC=

clips histogram bars at specification limits if there are no observations beyond the limits

ENDPOINTS=

labels interval endpoints and specifies how they are determined

HOFFSET=

specifies offset for horizontal axis

INTERTILE=

specifies distance between tiles

MAXNBIN=

specifies maximum number of bins displayed

MAXSIGMAS=

limits number of bins displayed to range of value standard deviations above and below mean of data in key cell

MIDPOINTS=

specifies how midpoints are determined

NCOLS=

specifies number of columns in comparative histogram

NOBARS

suppresses histogram bars

NOFRAME

suppresses frame around plotting area

NOKEYMOVE

suppresses rearrangement of cells that occurs by default with the CLASSKEY= option

NOPLOT

suppresses plot

NROWS=

specifies number of rows in comparative histogram

RTINCLUDE

includes right endpoint in interval

WBARLINE=

specifies line thickness for bar outlines

Axis and Legend Options

GRID

adds grid corresponding to vertical axis

LGRID=

specifies line style for grid requested with GRID option

NLEGEND

specifies form of the legend displayed inside tiles

NLEGENDPOS=

specifies position of legend displayed inside tiles

NOHLABEL

suppresses label for horizontal axis

NOVLABEL

suppresses label for vertical axis

NOVTICK

suppresses tick marks and tick mark labels for vertical axis

TILELEGLABEL=

specifies label displayed when _CTILE_ and _TILELG_ variables are provided in the CLASSSPEC= data set

TURNVLABELS

turns and strings out vertically characters in vertical axis labels

VAXIS=

specifies tick mark values for vertical axis

VAXISLABEL=

specifies label for vertical axis

VOFFSET=

specifies length of offset at upper end of vertical axis

VSCALE=

specifies scale for vertical axis

WAXIS=

specifies line thickness for axes and frame

WGRID=

specifies line thickness for grid

Reference Line Options

FRONTREF

draws reference lines in front of histogram bars

HREF=

specifies reference lines perpendicular to horizontal axis

HREFLABELS=

specifies labels for HREF= lines

HREFLABPOS=

specifies vertical position of labels for HREF= lines

LHREF=

specifies line style for HREF= lines

LVREF=

specifies line style for VREF= lines

VREF=

specifies reference lines perpendicular to vertical axis

VREFLABELS=

specifies labels for VREF= lines

VREFLABPOS=

specifies horizontal position of labels for VREF= lines

Text Enhancement Options

FONT=

specifies software font for text

HEIGHT=

specifies height of text used outside framed areas

INFONT=

specifies software font for text inside framed areas

INHEIGHT=

specifies height of text inside framed areas

Color and Pattern Options

CAXIS=

specifies color for axis

CBARLINE=

specifies color for outline of the bars

CFILL=

specifies color for filling bars

CFRAME=

specifies color for frame

CFRAMENLEG=

specifies the color for the frame requested by the NLEGEND option

CFRAMESIDE=

specifies color for filling frame for row labels

CFRAMETOP=

specifies color for filling frame for column labels

CGRID=

specifies color for grid lines

CHREF=

specifies color for HREF= lines

CPROP=

specifies color for proportion of frequency bar

CTEXT=

specifies color for text

CTEXTSIDE=

specifies color for row labels

CTEXTTOP=

specifies color for column labels

CVREF=

specifies color for VREF= lines

PFILL=

specifies pattern used to fill bars

Input and Output Data Set Options

ANNOKEY

applies annotation requested in ANNOTATE= data set to key cell only

ANNOTATE=

annotate data set

CLASSSPEC=

data set with specification limit information for each cell

OUTHISTOGRAM=

information on histogram intervals

Graphics Catalog Options

DESCRIPTION=

specifies description for graphics catalog member

NAME=

specifies name for plot in graphics catalog