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 18.5: 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

NOVLABEL

Suppresses label for primary vertical axis

NOV2LABEL

Suppresses label for secondary vertical axis

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 connecting 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