Find decision interval for given in-control ARL and reference value
findH.Rd
Function to find a decision interval h
* for given reference value k
and desired ARL so that the
average run length for a Poisson or Binomial CUSUM with in-control
parameter , reference value k
and is approximately ,
i.e. ,
or larger, i.e.
.
Arguments
- ARL0
desired in-control ARL
- theta0
in-control parameter
- s
change to detect, see details
- distr
"poisson"
or"binomial"
- rel.tol
relative tolerance, i.e. the search for
h
* is stopped ifrel.tol
- digits
the reference value
k
and the decision intervalh
are rounded todigits
decimal places- roundK
passed to
findK
- FIR
if
TRUE
, the decision interval that leads to the desired ARL for a FIR CUSUM with head start is returned- ...
further arguments for the distribution function, i.e. number of trials
n
for binomial cdf