BOXCHART Statement: SHEWHART Procedure

Summary of Options

The following tables list the BOXCHART statement options by function. For complete descriptions, see Dictionary of Options: SHEWHART Procedure.

Table 17.4: BOXCHART Statement Options

Option

Description

Options for Specifying Control Limits

ALPHA=

requests probability limits for control charts

CONTROLSTAT=

specifies whether control limits are computed for subgroup means or subgroup medians

LIMITN=

specifies either nominal sample size for fixed control limits or varying limits

NOREADLIMITS

computes control limits for each process from the data rather than from a LIMITS= data set (SAS 6.10 and later releases)

READALPHA

reads _ALPHA_ instead of _SIGMAS_ from a LIMITS= data set

READINDEX=

reads control limits for each process from a LIMITS= data set

READLIMITS

reads single set of control limits for each process from a LIMITS= data set (SAS 6.09 and earlier releases)

SIGMAS=

specifies width of control limits in terms of multiple k of standard error of plotted statistic

Options for Displaying Control Limits

CINFILL=

specifies color for area inside control limits

CLIMITS=

specifies color of control limits, central line, and related labels

LCLLABEL=

specifies label for lower control limit on box chart

LIMLABSUBCHAR=

specifies a substitution character for labels provided as quoted strings; the character is replaced with the value of the control limit

LLIMITS=

specifies line type for control limits

NDECIMAL=

specifies number of digits to right of decimal place in default labels for control limits and central line in box chart

NOCTL

suppresses display of central line in box chart

NOLCL

suppresses display of lower control limit in box chart

NOLIMITLABEL

suppresses labels for control limits and central line

NOLIMITS

suppresses display of control limits

NOLIMITSFRAME

suppresses default frame around control limit information when multiple sets of control limits are read from LIMITS= data set

NOLIMITSLEGEND

suppresses legend for control limits

NOUCL

suppresses display of upper control limit in box chart

UCLLABEL=

specifies label for upper control limit in box chart

WLIMITS=

specifies width for control limits and central line

XSYMBOL=

specifies label for central line in box chart

Process Mean and Standard Deviation Options

MEDCENTRAL=

specifies method for estimating process mean $\mu $

MU0=

specifies known value of $\mu _{0}$ for process mean $\mu $

RANGES

specifies that estimate of process standard deviation $\sigma $ is to be calculated from subgroup ranges

SIGMA0=

specifies known value $\sigma _{0}$ for process standard deviation $\sigma $

SMETHOD=

specifies method for estimating process standard deviation $\sigma $

TYPE=

identifies whether parameters are estimates or standard values and specifies value of _TYPE_ in the OUTLIMITS= data set

Options for Controlling Box Appearance

BOXCONNECT=

connects subgroup means, medians, maximum values, minimum values, or quartiles in box-and-whisker plots

BOXSTYLE=

specifies style of box-and-whisker plots

BOXWIDTH=

specifies width of box-and-whisker plots

BOXWIDTHSCALE=

specifies that widths of box-and-whisker plots vary proportionately to subgroup sample size

CBOXES=

specifies color for outlines of box-and-whisker plots

CBOXFILL=

specifies fill color for interior of box-and-whisker plots

IDCOLOR=

specifies outlier symbol color in schematic box-and-whisker plots

IDCTEXT=

specifies text color to label outliers or process variable values

IDFONT=

specifies text font to label outliers or process variable values

IDHEIGHT=

specifies text height to label outliers or process variable values

IDSYMBOL=

specifies outlier symbol in schematic box-and-whisker plots

IDSYMBOLHEIGHT=

specifies outlier symbol height in schematic box-and-whisker plots

LBOXES=

specifies line types for outlines of box-and-whisker plots

NOTCHES

specifies that box-and-whisker plots are to be notched

PCTLDEF=

specifies percentile definition used for box-and-whisker plots

SERIFS

adds serifs to the whiskers of skeletal box-and-whisker plots

WHISKERPERCENTILE=

specifies that whiskers be drawn to percentile values

Options for Plotting and Labeling Points

ALLLABEL=

labels every point on box chart

ALLLABEL2=

labels every point on trend chart

CCONNECT=

specifies color for line segments that connect points on chart

CFRAMELAB=

specifies fill color for frame around labeled points

CLABEL=

specifies color for labels

COUT=

specifies color for portions of line segments that connect points outside control limits

LABELANGLE=

specifies angle at which labels are drawn

LABELFONT=

specifies software font for labels (alias for the TESTFONT= option)

LABELHEIGHT=

specifies height of labels (alias for the TESTHEIGHT= option)

NOCONNECT

suppresses line segments that connect points on chart

NOTRENDCONNECT

suppresses line segments that connect points on trend chart

OUTLABEL=

labels points outside control limits on box chart

SYMBOLLEGEND=

specifies LEGEND statement for levels of symbol-variable

SYMBOLORDER=

specifies order in which symbols are assigned for levels of symbol-variable

TURNALL|TURNOUT

turns point labels so that they are strung out vertically

Options for Specifying Tests for Special Causes

INDEPENDENTZONES

computes zone widths independently above and below center line

NO3SIGMACHECK

enables tests to be applied with control limits other than $3\sigma $ limits

NOTESTACROSS

suppresses tests across phase boundaries

TESTS=

specifies tests for special causes for the box chart

TEST2RUN=

specifies length of pattern for Test 2

TEST3RUN=

specifies length of pattern for Test 3

TESTACROSS

applies tests across phase boundaries

TESTLABEL=

provides labels for points where test is positive

TESTLABELn=

specifies label for nth test for special causes

TESTNMETHOD=

applies tests to standardized chart statistics

TESTOVERLAP

performs tests on overlapping patterns of points

TESTRESET=

enables tests for special causes to be reset for the box chart

WESTGARD=

requests that Westgard rules be applied to the box chart

ZONELABELS

adds labels A, B, and C to zone lines

ZONES

adds lines to box chart delineating zones A, B, and C

ZONEVALPOS=

specifies position of ZONEVALUES labels

ZONEVALUES

labels zone lines with their values

Options for Displaying Tests for Special Causes

CTESTLABBOX=

specifies color for boxes enclosing labels indicating points where test is positive

CTESTS=

specifies color for labels indicating points where test is positive

CTESTSYMBOL=

specifies color for symbol used to plot points where test is positive

CZONES=

specifies color for lines and labels delineating zones A, B, and C

LTESTS=

specifies type of line connecting points where test is positive

LZONES=

specifies line type for lines delineating zones A, B, and C

TESTFONT=

specifies software font for labels at points where test is positive

TESTHEIGHT=

specifies height of labels at points where test is positive

TESTLABBOX

requests that labels for points where test is positive be positioned so that do not overlap

TESTSYMBOL=

specifies plot symbol for points where test is positive

TESTSYMBOLHT=

specifies symbol height for points where test is positive

WTESTS=

specifies width of line connecting points where test is positive

Axis and Axis Label Options

CAXIS=

specifies color for axis lines and tick marks

CFRAME=

specifies fill colors for frame for plot area

CTEXT=

specifies color for tick mark values and axis labels

DISCRETE

produces horizontal axis for discrete numeric group values

HAXIS=

specifies major tick mark values for horizontal axis

HEIGHT=

specifies height of axis label and axis legend text

HMINOR=

specifies number of minor tick marks between major tick marks on horizontal axis

HOFFSET=

specifies length of offset at both ends of horizontal axis

INTSTART=

specifies first major tick mark value on horizontal axis when a date, time, or datetime format is associated with numeric subgroup variable

NOHLABEL

suppresses label for horizontal axis

NOTICKREP

specifies that only the first occurrence of repeated, adjacent subgroup values is to be labeled on horizontal axis

NOVANGLE

requests vertical axis labels that are strung out vertically

SKIPHLABELS=

specifies thinning factor for tick mark labels on horizontal axis

SPLIT=

specifies splitting character for axis labels

TURNHLABELS

requests horizontal axis labels that are strung out vertically

VAXIS=

specifies major tick mark values for vertical axis of box chart

VAXIS2=

specifies major tick mark values for vertical axis of trend chart

VFORMAT=

specifies format for primary vertical axis tick mark labels

VFORMAT2=

specifies format for secondary vertical axis tick mark labels

VMINOR=

specifies number of minor tick marks between major tick marks on vertical axis

VOFFSET=

specifies length of offset at both ends of vertical axis

VZERO

forces origin to be included in vertical axis for primary chart

VZERO2

forces origin to be included in vertical axis for secondary chart

WAXIS=

specifies width of axis lines

Plot Layout Options

ALLN

plots summary statistics for all subgroups

BILEVEL

creates control charts using half-screens and half-pages

EXCHART

creates control charts for a process variable only when exceptions occur

INTERVAL=

specifies natural time interval between consecutive subgroup positions when time, date, or datetime format is associated with a numeric subgroup variable

MAXPANELS=

specifies maximum number of pages or screens for chart

NMARKERS

requests special markers for points corresponding to sample sizes not equal to nominal sample size for fixed control limits

NOCHART

suppresses creation of box chart

NOFRAME

suppresses frame for plot area

NOLEGEND

suppresses legend for subgroup sample sizes

NPANELPOS=

specifies number of subgroup positions per panel on each chart

REPEAT

repeats last subgroup position on panel as first subgroup position of next panel

TOTPANELS=

specifies number of pages or screens to be used to display chart

TRENDVAR=

specifies list of trend variables

YPCT1=

specifies length of vertical axis on box chart as a percentage of sum of lengths of vertical axes for box and trend charts

ZEROSTD

displays box chart regardless of whether $\hat{\sigma } = 0$

Reference Line Options

CHREF=

specifies color for lines requested by HREF= and HREF2= options

CVREF=

specifies color for lines requested by VREF= and VREF2= options

HREF=

specifies position of reference lines perpendicular to horizontal axis on box chart

HREF2=

specifies position of reference lines perpendicular to horizontal axis on trend chart

HREFDATA=

specifies position of reference lines perpendicular to horizontal axis on box chart

HREF2DATA=

specifies position of reference lines perpendicular to horizontal axis on trend chart

HREFLABELS=

specifies labels for HREF= lines

HREF2LABELS=

specifies labels for HREF2= lines

HREFLABPOS=

specifies position of HREFLABELS= and HREF2LABELS= labels

LHREF=

specifies line type for HREF= and HREF2= lines

LVREF=

specifies line type for VREF= and VREF2= lines

NOBYREF

specifies that reference line information in a data set is to be applied uniformly to charts created for all BY groups

VREF=

specifies position of reference lines perpendicular to vertical axis on box chart

VREF2=

specifies position of reference lines perpendicular to vertical axis on trend chart

VREFLABELS=

specifies labels for VREF= lines

VREF2LABELS=

specifies labels for VREF2= lines

VREFLABPOS=

specifies position of VREFLABELS= and VREF2LABELS= labels

Grid Options

CGRID=

specifies color for grid requested with GRID or ENDGRID option

ENDGRID

adds grid after last plotted point

GRID

adds grid to control chart

LENDGRID=

specifies line type for grid requested with the ENDGRID option

LGRID=

specifies line type for grid requested with the GRID option

WGRID=

specifies width of grid lines

Clipping Options

CCLIP=

specifies color for plot symbol for clipped points

CLIPFACTOR=

determines extent to which extreme points are clipped

CLIPLEGEND=

specifies text for clipping legend

CLIPLEGPOS=

specifies position of clipping legend

CLIPSUBCHAR=

specifies substitution character for CLIPLEGEND= text

CLIPSYMBOL=

specifies plot symbol for clipped points

CLIPSYMBOLHT=

specifies symbol marker height for clipped points

Graphical Enhancement Options

ANNOTATE=

specifies annotate data set that adds features to box chart

ANNOTATE2=

specifies annotate data set that adds features to trend chart

DESCRIPTION=

specifies description of box chart’s GRSEG catalog entry

FONT=

specifies software font for labels and legends on charts

NAME=

specifies name of box chart’s GRSEG catalog entry

PAGENUM=

specifies the form of the label used in pagination

PAGENUMPOS=

specifies the position of the page number requested with the PAGENUM= option

WTREND=

specifies width of line segments connecting points on trend chart

Options for Producing Graphs Using ODS Styles

BLOCKVAR=

specifies variables whose values define colors for filling background of block-variable legend

BOXES=

specifies variables whose values define colors box outlines

BOXFILL=

specifies variables whose values define colors for filling boxes

CFRAMELAB

draws a frame around labeled points

CPHASEBOX

requests boxes enclosing all plotted points for a phase

CPHASEBOXCONNECT

requests lines connecint adjacent enclosing boxes

CPHASEBOXFILL

fills boxes enclosing all plotted points for a phase

CPHASEMEANCONNECT

requests lines connecting phase average value points

Options for ODS Graphics

BLOCKREFTRANSPARENCY=

specifies the wall fill transparency for blocks and phases

BOXTRANSPARENCY=

specifies the box fill transparency for box-and-whisker charts

INFILLTRANSPARENCY=

specifies the control limit infill transparency

NOBLOCKREF

suppresses block and phase reference lines

NOBLOCKREFFILL

suppresses block and phase wall fills

NOBOXFILLLEGEND

suppresses legend for levels of a BOXFILL= variable

NOFILLLEGEND

suppresses legend for levels of a BOXFILL= variable

NOPHASEREF

suppresses block and phase reference lines

NOPHASEREFFILL

suppresses block and phase wall fills

NOREF

suppresses block and phase reference lines

NOREFFILL

suppresses block and phase wall fills

NOTRANSPARENCY

disables transparency in ODS Graphics output

ODSFOOTNOTE=

specifies a graph footnote

ODSFOOTNOTE2=

specifies a secondary graph footnote

ODSLEGENDEXPAND

specifies that legend entries contain all levels observed in the data

ODSTITLE=

specifies a graph title

ODSTITLE2=

specifies a secondary graph title

OUTHIGHURL=

specifies variable whose values are URLs to be associated with outliers above the upper fence on a schematic box chart

OUTLOWURL=

specifies variable whose values are URLs to be associated with outliers below the lower fence on a schematic box chart

OVERLAYURL=

specifies URLs to associate with overlay points

OVERLAY2URL=

specifies URLs to associate with overlay points on secondary chart

PHASEBOXLABELS

draws phase labels as titles along the top of phase boxes

PHASEPOS=

specifies vertical position of phase legend

PHASEREFLEVEL=

associates phase and block reference lines with either innermost or the outermost level

PHASEREFTRANSPARENCY=

specifies the wall fill transparency for blocks and phases

POINTSURL=

specifies variable whose values are URLs to be associated with points representing individual observations

REFFILLTRANSPARENCY=

specifies the wall fill transparency for blocks and phases

SIMULATEQCFONT

draws central line labels using a simulated software font

URL=

specifies a variable whose values are URLs to be associated with subgroups

URL2=

specifies a variable whose values are URLs to be associated with subgroups on secondary chart

WBOXES=

specifies width of box outlines for box-and-whisker charts

Input Data Set Options

MISSBREAK

specifies that observations with missing values are not to be processed

Output Data Set Options

OUTBOX=

creates output data set containing subgroup summary statistics, control limits, and outlier values for box chart

OUTHISTORY=

creates output data set containing subgroup summary statistics

OUTINDEX=

specifies value of _INDEX_ in the OUTLIMITS= data set

OUTLIMITS=

creates output data set containing control limits

OUTTABLE=

creates output data set containing subgroup summary statistics and control limits

Tabulation Options

Note: specifying (EXCEPTIONS) after a tabulation option creates a table for exceptional points only.

TABLE

creates a basic table of subgroup values, subgroup sample sizes, subgroup summary statistics, and control limits

TABLEALL

is equivalent to the options TABLE, TABLEBOX, TABLECENTRAL, TABLEID, TABLELEGEND, TABLEOUT, and TABLETEST

TABLEBOX

augments basic table with columns for minimum, 25th percentile, median, 75th percentile, and maximum of observations in a subgroup

TABLECENTRAL

augments basic table with values of central lines

TABLEID

augments basic table with columns for ID variables

TABLELEGEND

augments basic table with legend for tests for special causes

TABLEOUTLIM

augments basic table with columns indicating control limits exceeded

TABLETESTS

augments basic table with a column indicating which tests for special causes are positive

Specification Limit Options

CIINDICES

specifies $\alpha $ value and type for computing capability index confidence limits

LSL=

specifies list of lower specification limits

TARGET=

specifies list of target values

USL=

specifies list of upper specification limits

Block Variable Legend Options

BLOCKLABELPOS=

specifies position of label for block-variable legend

BLOCKLABTYPE=

specifies text size of block-variable legend

BLOCKPOS=

specifies vertical position of block-variable legend

BLOCKREP

repeats identical consecutive labels in block-variable legend

CBLOCKLAB=

specifies fill colors for frames enclosing variable labels in block-variable legend

CBLOCKVAR=

specifies one or more variables whose values are colors for filling background of block-variable legend

Phase Options

CPHASEBOX=

specifies color for box enclosing all plotted points for a phase

CPHASEBOXCONNECT=

specifies color for line segments connecting adjacent enclosing boxes

CPHASEBOXFILL=

specifies fill color for box enclosing all plotted points for a phase

CPHASELEG=

specifies text color for phase legend

CPHASEMEANCONNECT=

specifies color for line segments connecting average value points within a phase

NOPHASEFRAME

suppresses default frame for phase legend

OUTPHASE=

specifies value of _PHASE_ in the OUTHISTORY= data set

PHASEBREAK

disconnects last point in a phase from first point in next phase

PHASELABTYPE=

specifies text size of phase legend

PHASELEGEND

displays phase labels in a legend across top of chart

PHASELIMITS

labels control limits for each phase, provided they are constant within that phase

PHASEMEANSYMBOL=

specifies symbol marker for average of values within a phase

PHASEREF

delineates phases with vertical reference lines

READPHASES=

specifies phases to be read from an input data set

Overlay Options

CCOVERLAY=

specifies colors for primary chart overlay line segments

CCOVERLAY2=

specifies colors for secondary chart overlay line segments

COVERLAY=

specifies colors for primary chart overlay plots

COVERLAY2=

specifies colors for secondary chart overlay plots

COVERLAYCLIP=

specifies color for clipped points on overlays

LOVERLAY=

specifies line types for primary chart overlay line segments

LOVERLAY2=

specifies line types for secondary chart overlay line segments

NOOVERLAYLEGEND

suppresses legend for overlay plots

OVERLAY=

specifies variables to overlay on primary chart

OVERLAY2=

specifies variables to overlay on secondary chart

OVERLAY2HTML=

specifies links to associate with secondary chart overlay points

OVERLAY2ID=

specifies labels for secondary chart overlay points

OVERLAY2SYM=

specifies symbols for secondary chart overlays

OVERLAY2SYMHT=

specifies symbol heights for secondary chart overlays

OVERLAYCLIPSYM=

specifies symbol for clipped points on overlays

OVERLAYCLIPSYMHT=

specifies symbol height for clipped points on overlays

OVERLAYHTML=

specifies links to associate with primary chart overlay points

OVERLAYID=

specifies labels for primary chart overlay points

OVERLAYLEGLAB=

specifies label for overlay legend

OVERLAYSYM=

specifies symbols for primary chart overlays

OVERLAYSYMHT=

specifies symbol heights for primary chart overlays

WOVERLAY=

specifies widths of primary chart overlay line segments

WOVERLAY2=

specifies widths of secondary chart overlay line segments

Options for Interactive Control Charts

HTML=

specifies variable whose values create links to be associated with subgroups on primary chart

HTML2=

specifies variable whose values create links to be associated with subgroups on secondary chart

HTML_LEGEND=

specifies variable whose values create links to be associated with symbols in the symbol legend

OUTHIGHHTML=

specifies variable whose values create links to be associated with outliers above the upper fence on a schematic box chart

OUTLOWHTML=

specifies variable whose values create links to be associated with outliers below the lower fence on a schematic box chart

POINTSHTML=

specifies variable whose values create links to be associated with points representing individual observations

WEBOUT=

creates an OUTTABLE= data set with additional graphics coordinate data

Options for Line Printer Charts

CLIPCHAR=

specifies plot character for clipped points

CONNECTCHAR=

specifies character used to form line segments that connect points on chart

HREFCHAR=

specifies line character for HREF= and HREF2= lines

SYMBOLCHARS=

specifies characters indicating symbol-variable

TESTCHAR=

specifies character for line segments that connect any sequence of points for which a test for special causes is positive

VREFCHAR=

specifies line character for VREF= and VREF2= lines

ZONECHAR=

specifies character for lines that delineate zones for tests for special causes