Apply Default Rules Functions to a Shewhart Control Chart.

DESCRIPTION:

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

USAGE:

shewhart.rules(object, run.length=8) 

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:

a list with two components a follows:
beyond.limits
contains the indices of the points which are beyond the control limits.
runs
contains the indices of the points for which run.length or more consecutive points lie on one side of center line of the Shewhart control chart defined by object.

SIDE EFFECTS:

By default shewhart.rules is applied to a Shewhart control chart and all the violating points are highlighted.

DETAILS:

shewhart.rules simply applies beyond.limits and runs.target and returns a list of all points which violate either of these rules. shewhart.rules may be applied directly to an object inheriting from class "shewhart" to obtain a list containing the indices of points beyond the control limits and those violating the runs rule.

SEE ALSO:

, ,

EXAMPLES:

qc.chart <- shewhart(qcc(matrix(rnorm(100),ncol = 5), "xbar")) 
shewhart.rules(qc.chart)