Functions to compute runs test around the mean or the median (testofruns
) or up and down runs test (testofupdownruns
) to check randomness of a data.
Value
A c("JD3_TEST", "JD3")
object (see statisticaltest()
for details).
Examples
x <- random_t(5, 1000)
# random values
testofruns(x)
#> Value: -0.5650206
#> P-Value: 0.5721
testofupdownruns(x)
#> Value: -0.400363
#> P-Value: 0.6889
# non-random values
testofruns(ABS$X0.2.09.10.M)
#> Value: -14.05884
#> P-Value: 0.0000
testofupdownruns(ABS$X0.2.09.10.M)
#> Value: -10.0303
#> P-Value: 0.0000