XCHART Statement: CUSUM Procedure

Summary of Options

The following tables list the XCHART statement options by function. Options unique to the CUSUM procedure are listed in Table 6.2, and are described in detail in the section Dictionary of Special Options. Options that are common to both the CUSUM and SHEWHART procedures are listed in Table 6.3. They are described in detail in Dictionary of Options: SHEWHART Procedure.

Table 6.2: XCHART Statement Special Options

Option

Description

Options for Specifying a One-Sided (Decision Interval) Cusum Scheme

DELTA=

Specifies shift to be detected as a multiple of standard error

H=

Specifies decision interval h (h > 0) as a multiple of standard error

HEADSTART=

Specifies headstart value $S_{0}$ as a multiple of standard error

K=

Specifies reference value k (k > 0)

LIMITN=

Specifies fixed nominal sample size for cusum scheme

LIMITN=

Specifies that cusums are to be computed for all subgroups regardless of sample size

MU0=

Specifies target $\mu _{0}$ for mean

NOREADLIMITS

Specifies that cusum parameters are not to be read from LIMITS= data set (SAS 6.10 and later releases)

READINDEX=

Reads cusum scheme parameters from a LIMITS= data set

READLIMITS

Specifies that cusum parameters are to be read from LIMITS= data set (SAS 6.09 and earlier releases)

SCHEME=ONESIDED

Specifies a one-sided scheme

SHIFT=

Specifies shift to be detected in data units

SIGMA0=

Specifies standard (known) value $\sigma _{0}$ for process standard deviation

Options for Specifying a Two-Sided (V-Mask) Cusum Scheme

ALPHA=

Specifies probability of Type 1 error

BETA=

Specifies probability of Type 2 error

H=

Specifies vertical distance between V-mask origin and upper (or lower) arm

K=

Specifies slope of lower arm of V-mask

LIMITN=

Specifies fixed nominal sample size for cusum scheme

LIMITN=

Specifies that cusums are to be computed for all subgroups regardless of sample size

NOREADLIMITS

Specifies that cusum parameters are not to be read from LIMITS= data set (SAS 6.10 and later releases)

READINDEX=

Reads cusum scheme parameters from a LIMITS= data set

READLIMITS

Specifies that cusum parameters are to be read from LIMITS= data set (SAS 6.09 and earlier releases)

READSIGMAS

Reads _SIGMAS_ instead of _ALPHA_ from LIMITS= data set when both variables are available

SIGMAS=

Specifies probability of Type 1 error as probability that standard normally distributed variable exceeds value in absolute value

Options for Estimating Process Standard Deviation

SMETHOD=

Specifies method for estimating process standard deviation $\sigma $

TYPE=

Identifies whether _STDDEV_ in OUTLIMITS= data set is an estimate or standard, and specifies value of _TYPE_ in OUTLIMITS= data set

Options for Displaying Decision Interval or V-Mask

CINFILL=

Specifies color for area under decision interval line or inside V-mask

CLIMITS=

Specifies color of decision interval line

CMASK=

Specifies color of V-mask outline

LLIMITS=

Specifies line type for decision interval

LMASK=

Specifies line type for V-mask arms

NOMASK

Suppresses display of V-mask

ORIGIN=

Specifies value of subgroup-variable locating origin of V-mask

WLIMITS=

Specifies line width for decision interval

WMASK=

Specifies line width for V-mask

Tabulation Options

TABLEALL

Specifies the options TABLECHART, TABLECOMP, TABLEID, TABLEOUT, and TABLESUMMARY

TABLECHART

Tabulates the information displayed in the cusum chart

TABLECOMP

Tabulates the computational form of the cusum scheme as described by Lucas (1976) and Lucas and Crosier (1982)

TABLEID

Augments TABLECHART and TABLECOMP tables with columns for ID variables

TABLEOUT

Augments TABLECHART table with a column indicating if the decision interval or V-mask was exceeded

TABLESUMMARY

Tabulates the parameters for the cusum scheme and the average run lengths corresponding to shifts of zero and $\delta $


Table 6.3: XCHART Statement General Options

Option

Description

Options for Plotting and Labeling Points

ALLLABEL=

Labels every point on cusum chart

ALLLABEL2=

Labels every point on trend chart

CLABEL=

Specifies color for labels

CCONNECT=

Specifies color for line segments that connect points on chart

CFRAMELAB=

Specifies fill color for frame around labeled points

COUT=

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

COUTFILL=

Specifies color for shading areas between the connected points and control limits outside the limits

LABELANGLE=

Specifies angle at which labels are drawn

LABELFONT=

Specifies software font for labels

LABELHEIGHT=

Specifies height of labels

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

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

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

WAXIS=

Specifies width of axis lines

Plot Layout Options

ALLN

Plots means for all subgroups

BILEVEL

Creates control charts using half-screens and half-pages

EXCHART

Creates control charts for a process only when exceptions occur

INTERVAL=

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

MAXPANELS=

Specifies the 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 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 cusum chart as a percentage of sum of lengths of vertical axes for cusum and trend charts

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 cusum 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 cusum 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 applies uniformly to charts created for all BY groups

VREF=

Specifies position of reference lines perpendicular to vertical axis on cusum 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 the 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

Graphical Enhancement Options

ANNOTATE=

Specifies annotate data set that adds features to cusum chart

ANNOTATE2=

Specifies annotate data set that adds features to trend chart

DESCRIPTION=

Specifies description of cusum chart’s GRSEG catalog entry

FONT=

Specifies software font for labels and legends on charts

NAME=

Specifies name of cusum 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 one or more variables whose values define colors for filling background of block-variable legend

CFRAMELAB

Draws a frame around labeled points

COUT

Draws portions of line segments that connect points outside control limits in a contrasting color

CSTAROUT

Specifies that portions of stars exceeding inner or outer circles are drawn using a different color

OUTFILL

Shades areas between control limits and connected points lying outside the limits

STARFILL=

Specifies a variable identfying groups of stars filled with different colors

STARS=

Specifies a variable identfying groups of stars whose outlines are drawn with different colors

Options for ODS Graphics

BLOCKREFTRANSPARENCY=

Specifies the wall fill transparency for blocks and phases

INFILLTRANSPARENCY=

Specifies the control limit infill transparency

MARKERS

Plots subgroup points with markers

NOBLOCKREF

Suppresses block and phase reference lines

NOBLOCKREFFILL

Suppresses block and phase wall fills

NOFILLLEGEND

Suppresses legend for levels of a STARFILL= 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

NOSTARFILLLEGEND

Suppresses legend for levels of a STARFILL= variable

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

OUTFILLTRANSPARENCY=

Specifies control limit outfill transparency

OVERLAYURL=

Specifies URLs to associate with overlay points

OVERLAY2URL=

Specifies URLs to associate with overlay points on secondary chart

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

REFFILLTRANSPARENCY=

Specifies the wall fill transparency for blocks and phases

SIMULATEQCFONT

Draws central line labels using a simulated software font

STARTRANSPARENCY=

Specifies star fill transparency

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

Input Data Set Options

MISSBREAK

Specifies that observations with missing values are not to be processed

Output Data Set Options

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

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

CPHASELEG=

Specifies text color 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

PHASEREF

Delineates phases with vertical reference lines

READPHASES=

Specifies phases to be read from an input data set

Star Options

CSTARCIRCLES=

Specifies color for STARCIRCLES= circles

CSTARFILL=

Specifies color for filling stars

CSTAROUT=

Specifies outline color for stars exceeding inner or outer circles

CSTARS=

Specifies color for outlines of stars

LSTARCIRCLES=

Specifies line types for STARCIRCLES= circles

LSTARS=

Specifies line types for outlines of STARVERTICES= stars

STARBDRADIUS=

Specifies radius of outer bound circle for vertices of stars

STARCIRCLES=

Specifies reference circles for stars

STARINRADIUS=

Specifies inner radius of stars

STARLABEL=

Specifies vertices to be labeled

STARLEGEND=

Specifies style of legend for star vertices

STARLEGENDLAB=

Specifies label for STARLEGEND= legend

STAROUTRADIUS=

Specifies outer radius of stars

STARSPECS=

Specifies method used to standardize vertex variables

STARSTART=

Specifies angle for first vertex

STARTYPE=

Specifies graphical style of star

STARVERTICES=

superimposes star at each point on cusum chart

WSTARCIRCLES=

Specifies width of STARCIRCLES= circles

WSTARS=

Specifies width of STARVERTICES= stars

Options for Interactive Control Charts

HTML=

Specifies a variable whose values create links to be associated with subgroups

HTML2=

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

HTML_LEGEND=

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

WEBOUT=

Creates an OUTTABLE= data set with additional graphics coordinate data

Options for Line Printer Charts

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

VREFCHAR=

Specifies line character for VREF= and VREF2= lines