runstests: Runs Tests around the mean or the median

runstestsR Documentation

Runs Tests around the mean or the median

Description

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.

Usage

testofruns(data, mean = TRUE, number = TRUE)

testofupdownruns(data, number = TRUE)

Arguments

data

data being tested.

mean

If TRUE, runs around the mean. Otherwise, runs around the median.

number

If TRUE, test the number of runs. Otherwise, test the lengths of the runs.

Value

A c("JD3_TEST", "JD3") object (see statisticaltest() for details).

Functions

  • testofruns(): Runs test around mean or median

  • testofupdownruns(): up and down runs test

Examples

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)

palatej/rjd3toolkit documentation built on Oct. 30, 2024, 10:46 p.m.