Skip to contents

Thin extender over randtests::bartels.rank.test for the Bartels rank von-Neumann test of randomness in a numeric sequence.

Usage

morie_randtests_bartels(x, ...)

Arguments

x

A numeric vector.

...

Further arguments forwarded to randtests::bartels.rank.test (e.g. alternative, pvalue).

Value

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

Examples

if (requireNamespace("randtests", quietly = TRUE)) {
  set.seed(1)
  morie_randtests_bartels(rnorm(40))
}
#> $method
#> [1] "bartels_rank_test (rmorie native)"
#> 
#> $raw
#> $raw$statistic
#> [1] -0.7214582
#> 
#> $raw$rvn
#> [1] 1.775985
#> 
#> $raw$p.value
#> [1] 0.4706277
#> 
#> $raw$method
#> [1] "Bartels Rank Test (rmorie native)"
#> 
#>