Runs test for detecting serial correlation in the vector x.
median(x)
)
x - v
, n1 and n0; and the test statistic z.
Note: the large-sample normal approximation is used to find h and p. This is accurate if n1, n0 are both greater than 10.
Reference: NIST Engineering Statistics Handbook, 1.3.5.13. Runs Test for Detecting Non-randomness, http://www.itl.nist.gov/div898/handbook/eda/section3/eda35d.htm
See also: .
Package: statistics