lns2ewma.crit {spc} | R Documentation |
Compute critical values of EWMA ln S^2
control charts (variance charts)
Description
Computation of the critical values (similar to alarm limits)
for different types of EWMA control charts
(based on the log of the sample variance S^2
) monitoring normal variance.
Usage
lns2ewma.crit(l,L0,df,sigma0=1,cl=NULL,cu=NULL,hs=NULL,sided="upper",mode="fixed",r=40)
Arguments
l |
smoothing parameter lambda of the EWMA control chart. |
L0 |
in-control ARL. |
df |
actual degrees of freedom, corresponds to subsample size (for known mean it is equal to the subsample size, for unknown mean it is equal to subsample size minus one. |
sigma0 |
in-control standard deviation. |
cl |
deployed for |
cu |
for two-sided ( |
hs |
so-called headstart (enables fast initial response) – the default value (hs=NULL) corresponds to the
in-control mean of ln |
sided |
distinguishes between one- and two-sided two-sided EWMA- |
mode |
only deployed for |
r |
dimension of the resulting linear equation system: the larger the more accurate. |
Details
lns2ewma.crit
determines the critical values (similar to alarm limits) for given in-control ARL L0
by applying secant rule and using lns2ewma.arl()
.
In case of sided
="two"
and mode
="unbiased"
a two-dimensional secant rule is applied that also ensures that the
maximum of the ARL function for given standard deviation is attained
at sigma0
. See Knoth (2010) and the related example.
Value
Returns the lower and upper control limit cl
and cu
.
Author(s)
Sven Knoth
References
C. A. Acosta-Mej\'ia and J. J. Pignatiello Jr. and B. V. Rao (1999), A comparison of control charting procedures for monitoring process dispersion, IIE Transactions 31, 569-579.
S. V. Crowder and M. D. Hamilton (1992), An EWMA for monitoring a process standard deviation, Journal of Quality Technology 24, 12-21.
S. Knoth (2005),
Accurate ARL computation for EWMA-S^2
control charts,
Statistics and Computing 15, 341-352.
S. Knoth (2010), Control Charting Normal Variance – Reflections, Curiosities, and Recommendations, in Frontiers in Statistical Quality Control 9, H.-J. Lenz and P.-T. Wilrich (Eds.), Physica Verlag, Heidelberg, Germany, 3-18.
See Also
lns2ewma.arl
for calculation of ARL of EWMA ln S^2
control charts.
Examples
## Knoth (2005)
## compare with 1.05521 mentioned on page 350 third line from below
L0 <- 200
lambda <- .05
df <- 4
limits <- lns2ewma.crit(lambda, L0, df, cl=0, hs=0)
limits["cu"]/sqrt( lambda/(2-lambda)*(2/df+2/df^2+4/3/df^3-16/15/df^5) )