runstests | R Documentation |
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.
testofruns(data, mean = TRUE, number = TRUE)
testofupdownruns(data, number = TRUE)
data |
data being tested. |
mean |
If |
number |
If |
A c("JD3_TEST", "JD3")
object (see statisticaltest()
for details).
testofruns()
: Runs test around mean or median
testofupdownruns()
: up and down runs test
x <- random_t(5, 1000)
# random values
testofruns(x)
testofupdownruns(x)
# non-random values
testofruns(ABS$X0.2.09.10.M)
testofupdownruns(ABS$X0.2.09.10.M)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.