A vector of indexes that select the elements of the cusum statistics that will be plotted.
emphOOC
A logical indicating whether out of control points should be emphasized in red.
object
Object of class cusum
Value
A object of class cusum, which is a vector of the Cusum statistics, along with the following attributes:
X, k, h, initial, and reset (which correspond to the original arguments provided to
the function) and resetCounter, a vector of integers corresponding to cusum that indicates when the
Cusum resets.
Methods (by generic)
print: Prints the cusum object by only showing the Cusum statistics and suppressing the attributes.
plot: Plots the cusum object.
signal: Prints the indexes in a cusum object that exceed the control limit
Details
Cusum is assumed to be of the form: C[i] = max(0, C[i-1] + X[i] - k),
where the signal occurs when C[i] > h. Note that X can be the Cusum scores, or weights,
given by the log-likelihood ratio, in which case k = 0 would make sense.
References
Hawkins DM and Olwell DH. (1998) Cumulative Sum Charts and Charting for Quality Improvement. Springer.
# NOT RUN {y <- cusum(rnorm(50), 0.2, 2)
y
# Plot the cusumplot(y)
# Show the indexes where the chart signaledsignal(y)
# A look at the attributesattributes(y)
# }