Description Usage Arguments Details Value Author(s)
View source: R/countConsecutive.R
Shewhart's rules provide conditions under which a process can
be considered to be out of control. countConsecutive
generates
an index by which runs can be systematically identified and can
facilitate identifying these observations on control charts.
1 | countConsecutive(x, condition, maxIndex = TRUE, ...)
|
x |
A numeric vector of observations. |
condition |
An unevaluated logical expression based on |
maxIndex |
Logical. When |
... |
Additional arguments to be passed to |
Shewhart's rules for identifying out of control processes are: \item Any one point is more than three standard units from the central line \item Any two consecutive points are more than two standard units in the same direction from the central line \item A run of ___ consecutive points are more than one standard units in the same direction from the central line \item A run of eight consecutive points are on the same side of the central line.
A vector the length of x
giving each elements run length or
run count.
Benjamin Nutter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.