Rule6: Rule 6

Description Usage Arguments Details Value Examples

Description

Four or five out of five points in a row are more than 1 standard deviation from the mean in the same direction.

Usage

1
Rule6(x, zoneB, minNPoints = 4, nPoints = 5, ...)

Arguments

x

Numerical vector

zoneB

Vector of zone borders

minNPoints

Minimal number of points in a sequence violating a rule

nPoints

Sequence of consequtive points to be evaluated

...

unspecified arguments of a function

Details

0 means: ok
1 means: violation

inequality used during evaluation Rule is violated also if the first four points are beyond the 1 standard deviation from the mean During calculation of EvaluateRules function wiht controlLimitDistance <= 1, the evaluation of this rule is suppressed

Value

Vector of the same length as x

Examples

1
2
3
4
limits = CalculateLimits(x = rnorm(10), lcl = NA, cl = 100, ucl = NA, type = 'i')
zones = CalculateZoneBorders(limits)
Rule6(x = rnorm(20), zoneB = zones, minNPoints = 4, nPoints = 5)
#zones is object created by function CalculateZoneBorders()

Example output

 [1] 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Rspc documentation built on May 2, 2019, 9:19 a.m.