ocCurves | R Documentation |
Draws the operating characteristic curves for a 'qcc'
object.
ocCurves(object, ...) ocCurves.xbar(object, size = c(1, 5, 10, 15, 20), shift = seq(0, 5, by = 0.1), nsigmas = object$nsigmas, ...) ocCurves.R(object, size = c(2, 5, 10, 15, 20), multiplier = seq(1, 6, by = 0.1), nsigmas = object$nsigmas, ...) ocCurves.S(object, size = c(2, 5, 10, 15, 20), multiplier = seq(1, 6, by = 0.1), nsigmas = object$nsigmas, ...) ocCurves.p(object, ...) ocCurves.c(object, ...) ## S3 method for class 'ocCurves' print(x, digits = getOption("digits"), ...) ## S3 method for class 'ocCurves' plot(x, what = c("beta", "ARL"), title, xlab, ylab, lty, lwd, col, ...)
object |
an object of class |
size |
a vector of values specifying the sample sizes for which to draw the OC curves. |
shift, multiplier |
a vector of values specifying the shift or multiplier values (in units of sigma). |
nsigmas |
a numeric value specifying the number of sigmas to use for computing control limits; if |
x |
an object of class |
digits |
the number of significant digits to use. |
what |
a string specifying the quantity to plot on the y-axis. Possible values are |
title |
a character string specifying the main title. Set |
xlab, ylab |
a string giving the label for the x-axis and the y-axis. |
lty, lwd, col |
values or vector of values controlling the line type, line width and colour of curves. |
... |
catches further ignored arguments. |
An operating characteristic curve graphically provides information about the probability of not detecting a shift in the process. ocCurves
is a generic function which calls the proper function depending on the type of 'qcc'
object. Further arguments provided through ...
are passed to the specific function depending on the type of chart.
The probabilities are based on the conventional assumptions about process distributions: the normal distribution for "xbar"
, "R"
, and "S"
, the binomial distribution for "p"
and "np"
, and the Poisson distribution for "c"
and "u"
. They are all sensitive to departures from those assumptions, but to varying degrees. The performance of the "S"
chart, and especially the "R"
chart, are likely to be seriously affected by longer tails.
The function returns an object of class 'ocCurves'
which contains a matrix or a vector of beta values (the probability of type II error) and ARL (average run length).
Luca Scrucca
Mason, R.L. and Young, J.C. (2002) Multivariate Statistical Process Control with Industrial Applications, SIAM.
Montgomery, D.C. (2013) Introduction to Statistical Quality Control, 7th ed. New York: John Wiley & Sons.
Ryan, T. P. (2011), Statistical Methods for Quality Improvement, 3rd ed. New York: John Wiley & Sons, Inc.
Scrucca, L. (2004). qcc: an R package for quality control charting and statistical process control. R News 4/1, 11-17.
Wetherill, G.B. and Brown, D.W. (1991) Statistical Process Control. New York: Chapman & Hall.
qcc
data(pistonrings) diameter <- qccGroups(diameter, sample, data = pistonrings) oc <- ocCurves.xbar(qcc(diameter, type="xbar", nsigmas=3)) oc plot(oc) data(orangejuice) oc <- with(orangejuice, ocCurves(qcc(D[trial], sizes=size[trial], type="p"))) oc plot(oc) data(circuit) oc <- with(circuit, ocCurves(qcc(x[trial], sizes=size[trial], type="c"))) oc plot(oc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.