Skip to contents

Thin extender over randtests::turning.point.test for the classical turning-point test of randomness in a numeric sequence.

Usage

morie_randtests_turning_point(x, ...)

Arguments

x

A numeric vector.

...

Further arguments forwarded to randtests::turning.point.test (e.g. alternative).

Value

A list with $method = "randtests::turning.point.test" and $raw (an htest object).

Examples

if (requireNamespace("randtests", quietly = TRUE)) {
  set.seed(1)
  morie_randtests_turning_point(rnorm(40))
}
#> $method
#> [1] "turning_point_test (rmorie native)"
#> 
#> $raw
#> $raw$statistic
#> [1] -1.663117
#> 
#> $raw$p.value
#> [1] 0.09628906
#> 
#> $raw$tp
#> [1] 21
#> 
#> $raw$method
#> [1] "Turning Point Test (rmorie native)"
#> 
#>