xcusum.q | R Documentation |
Computation of quantiles of the Run Length (RL)for CUSUM control charts monitoring normal mean.
xcusum.q(k, h, mu, alpha, hs=0, sided="one", r=40)
k |
reference value of the CUSUM control chart. |
h |
decision interval (alarm limit, threshold) of the CUSUM control chart. |
mu |
true mean. |
alpha |
quantile level. |
hs |
so-called headstart (enables fast initial response). |
sided |
distinguishes between one- and two-sided CUSUM control chart by choosing |
r |
number of quadrature nodes, dimension of the resulting linear equation system is equal to |
Instead of the popular ARL (Average Run Length) quantiles of the CUSUM stopping time (Run Length) are determined. The algorithm is based on Waldmann's survival function iteration procedure.
Returns a single value which resembles the RL quantile of order q
.
Sven Knoth
K.-H. Waldmann (1986), Bounds for the distribution of the run length of one-sided and two-sided CUSUM quality control schemes, Technometrics 28, 61-67.
xcusum.arl
for zero-state ARL computation of CUSUM control charts.
## Waldmann (1986), one-sided CUSUM, Table 2
## original values are 345, 82, 9
XCUSUM.Q <- Vectorize("xcusum.q", "alpha")
k <- .5
h <- 3
mu <- 0 # corresponds to Waldmann's -0.5
a.list <- c(.95, .5, .05)
rl.quantiles <- ceiling(XCUSUM.Q(k, h, mu, a.list))
cbind(a.list, rl.quantiles)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.