Determine Indices of Points Violating the Runs Rule.

DESCRIPTION:
Returns the indices of all the points for which run.length or more consecutive points lie on one side of center line of a Shewhart control chart.

USAGE:
runs.target(object, run.length=5)

REQUIRED ARGUMENTS:
object:
an object of class "shewhart". Usually the return object of a call to the shewhart function.

OPTIONAL ARGUMENTS:
run.length:
the minimal length of runs you want to detect.

VALUE:
the indices of points for which run.length or more points are consecutively on one side of the center line of the control chart.

SIDE EFFECTS:
In a call to shewhart, runs.target is applied (by default) to the Shewhart control chart and all the violating points are highlighted.

DETAILS:
runs.target and beyond.limits are the two rules applied to a Shewhart control chart by default. Any violating points are highlighted. Both runs.target and beyond.limits are called by shewhart.rules which is called by shewhart.

runs.target may be applied directly to an object inheriting from class "shewhart" to obtain the indices of points violating the runs rule.


SEE ALSO:
beyond.limits , shewhart.rules , shewhart

EXAMPLES:
qc.chart <- shewhart(qcc(matrix(rnorm(100),ncol = 5), "xbar"))
runs.target(qc.chart)