Rule4 {Rspc} | R Documentation |
Rule 4
Description
Fourteen or more points in a row alternate in direction, increasing then decreasing.
Usage
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
Rule4(x = rnorm(20), nPoints = 14,convention = 1)
[Package Rspc version 1.2.2 Index]