Learn R Programming

Rspc (version 1.2.2)

Rule8: Rule 8

Description

Eight points in a row outside 1 standard deviation of the mean in both directions.

Usage

Rule8(x, nPoints = 8, zoneB, ...)

Arguments

x

Numerical vector

nPoints

Sequence of consequtive points to be evaluated

zoneB

Vector of zone borders

...

unspecified arguments of a function

Value

Vector of the same length as x

Details

0 means: ok 1 means: violation

inequality used during evaluation During calculation of EvaluateRules function wiht controlLimitDistance <= 1, the evaluation of this rule is suppressed

Examples

Run this code
# NOT RUN {
limits = CalculateLimits(x = rnorm(10), lcl = NA, cl = 100, ucl = NA, type = 'i')
zones = CalculateZoneBorders(limits)
Rule8(x = rnorm(20), zoneB = zones, nPoints = 8)
#zones is object created by function CalculateZoneBorders()
# }

Run the code above in your browser using DataLab