xsewma.crit {spc} | R Documentation |
Compute critical values of simultaneous EWMA control charts (mean and variance charts)
Description
Computation of the critical values (similar to alarm limits)
for different types of simultaneous EWMA control charts
(based on the sample mean and the sample variance S^2
)
monitoring normal mean and variance.
Usage
xsewma.crit(lx, ls, L0, df, mu0=0, sigma0=1, cu=NULL, hsx=0,
hss=1, s2.on=TRUE, sided="upper", mode="fixed", Nx=30, Ns=40, qm=30)
Arguments
lx |
smoothing parameter lambda of the two-sided mean EWMA chart. |
ls |
smoothing parameter lambda of the variance EWMA chart. |
L0 |
in-control ARL. |
mu0 |
in-control mean. |
sigma0 |
in-control standard deviation. |
cu |
for two-sided ( |
hsx |
so-called headstart (enables fast initial response) of the mean chart – do not confuse with the true FIR feature considered in xewma.arl; will be updated. |
hss |
headstart (enables fast initial response) of the variance chart. |
df |
actual degrees of freedom, corresponds to subgroup size (for known mean it is equal to the subgroup size, for unknown mean it is equal to subgroup size minus one. |
s2.on |
distinguishes between |
sided |
distinguishes between one- and two-sided two-sided EWMA- |
mode |
only deployed for |
Nx |
dimension of the approximating matrix of the mean chart. |
Ns |
dimension of the approximating matrix of the variance chart. |
qm |
number of quadrature nodes used for the collocation integrals. |
Details
xsewma.crit
determines the critical values (similar to alarm limits)
for given in-control ARL L0
by applying secant rule and using xsewma.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 (2007) for details and application.
Value
Returns the critical value of the two-sided mean EWMA chart and
the lower and upper controls limit cl
and cu
of the variance EWMA chart.
Author(s)
Sven Knoth
References
S. Knoth (2007), Accurate ARL calculation for EWMA control charts monitoring simultaneously normal mean and variance, Sequential Analysis 26, 251-264.
See Also
xsewma.arl
for calculation of ARL of simultaneous EWMA charts.
Examples
## Knoth (2007)
## results in Table 2
# subgroup size n=5, df=n-1
df <- 4
# lambda of mean chart
lx <- .134
# lambda of variance chart
ls <- .1
# in-control ARL
L0 <- 252.3
# matrix dimensions for mean and variance part
Nx <- 25
Ns <- 25
# mode of variance chart
SIDED <- "upper"
crit <- xsewma.crit(lx, ls, L0, df, sided=SIDED, Nx=Nx, Ns=Ns)
crit
## output as used in Knoth (2007)
crit["cx"]/sqrt(df+1)*sqrt(lx/(2-lx))
crit["cu"] - 1