Performs Kuiper test for the hypothesis of uniformity, see Kuiper (1960).
Usage
kuiper.unif.test(x, nrepl=2000)
Arguments
x
a numeric vector of data values.
nrepl
the number of replications in Monte Carlo simulation.
Value
A list with class "htest" containing the following components:
statisticthe value of the Kuiper statistic.
p.valuethe p-value for the test.
methodthe character string "Kuiper test for uniformity".
data.namea character string giving the name(s) of the data.
Details
The Kuiper test for uniformity is based on the following statistic:
$$V = \max_i\left(\frac{i}{n}-X_{(i)}\right) + \max_i\left(X_{(i)}-\frac{i-1}{n}\right)$$
The p-value is computed by Monte Carlo simulation.
References
Kuiper, N.H. (1960): Tests concerning random points on a circle. --- Proc. Kon. Ned. Akad. Wetensch., Ser. A, vol. 63, pp. 38--47.