Rule4: Rule 4

Description Usage Arguments Details Value Examples

Description

Fourteen or more points in a row alternate in direction, increasing then decreasing.

Usage

1
Rule4(x, nPoints = 14, convention = 1, ...)

Arguments

x

Numerical vector

nPoints

Sequence of consequtive points to be evaluated

convention

Calculation according to 'minitab' or 'jmp' (see details)

...

unspecified arguments of a function

Details

0 means: ok
1 means: violation

parameter convention is internally encoded as: 1 for 'minitab' and 2 for 'jmp'

Difference in convention parameter is as follows:
'minitab' - 15 or more points (14 changes of direction) in a row alternate in direction, increasing then decreasing
'jmp' - 14 or more points (13 changes of direction) in a row alternate in direction, increasing then decreasing

Value

Vector of the same length as x

Examples

1
Rule4(x = rnorm(20), nPoints = 14,convention = 1)

Example output

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

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