Probability function, distribution function for the distribution of the Bartels Rank statistic NM, for a sample of size \(n\).
dbartelsrank(x, n, log = FALSE)
pbartelsrank(q, n, lower.tail = TRUE, log.p = FALSE)
a numeric vector of quantiles.
number of observations to return.
logical; if TRUE, probabilities p are given as log(p).
logical; if TRUE (default), probabilities are P[X \(\le\) x] otherwise, P[X > x].
dbartelsrank
gives the probability function and pbartelsrank
gives the distribution function.
This function can use large amounts of memory and stack (and even crash R if the stack limit is exceeded) if the sample size \(n\) is large.
Bartels, R. (1982). The Rank Version of von Neumann's Ratio Test for Randomness, Journal of the American Statistical Association, 77(377), 40--46.
Gibbons, J.D. and Chakraborti, S. (2003). Nonparametric Statistical Inference, 4th ed. (pp. 97--98). URL: http://books.google.pt/books?id=dPhtioXwI9cC&lpg=PA97&ots=ZGaQCmuEUq
bartels.rank.test
to calculate the value of the statistic NM from data.