cusum.qcc {qcc}R Documentation

Cusum chart

Description

Draw a Cusum chart from an object of class `qcc'.

Usage

## S3 method for class 'qcc':
cusum(object, decision.int = 5, se.shift = 1,
      label.bounds = c("LDB", "UDB"), add.stats = TRUE, chart.all = TRUE, 
      ylim = NULL, axes.las = 0, restore.par = TRUE, ...)

Arguments

object an object of class `qcc'.
decision.int A numeric value specifying the number of standard errors of the summary statistics at which the cumulative sum is out of control.
se.shift The amount of shift to detect in the process, measured in standard errors of the summary statistics.
label.bounds a character vector specifying the labels for the the decision interval boundaries.
add.stats a logical value indicating whether statistics and other information should be printed at the bottom of the chart.
chart.all a logical value indicating whether both statistics for data and for newdata (if given) should be plotted.
ylim a numeric vector specifying the limits for the y-axis.
axes.las numeric in {0,1,2,3} specifying the style of axis labels. See help(par).
restore.par a logical value indicating whether the previous par settings must be restored. If you need to add points, lines, etc. to a control chart set this to FALSE.
...

Details

Cusum charts display how the group summary statistics deviate above or below the process center or target value, relative to the standard errors of the summary statistics. Useful to detect small and permanent variation on the mean of the process.

Value

Returns an object of class `cusum' which inherits from the `qcc' object. No methods are specifically defined for the `cusum' class.

Author(s)

Luca Scrucca luca@stat.unipg.it

References

Montgomery, D.C. (2000) Introduction to Statistical Quality Control, 4th ed. New York: John Wiley & Sons.
Wetherill, G.B. and Brown, D.W. (1991) Statistical Process Control. New York: Chapman & Hall.

See Also

qcc, ewma

Examples

data(pistonrings)
attach(pistonrings)
diameter <- qcc.groups(diameter, sample)
q <- qcc(diameter[1:25,], type="xbar", nsigmas=3, plot=FALSE)
cusum(q)
q <- qcc(diameter[1:25,], type="xbar", newdata=diameter[26:40,], nsigmas=3, plot=FALSE)
cusum(q)
cusum(q, chart.all=FALSE)
cusum(qcc(diameter, type="xbar", nsigmas=3, target=74, std.dev=0.02, plot=FALSE))

[Package qcc version 1.2 Index]