kuiper.unif.test: Kuiper test for uniformity

Description Usage Arguments Details Value Author(s) References Examples

View source: R/kuiper.unif.test.r

Description

Performs Kuiper test for the hypothesis of uniformity, see Kuiper (1960).

Usage

1
kuiper.unif.test(x, nrepl=2000)

Arguments

x

a numeric vector of data values.

nrepl

the number of replications in Monte Carlo simulation.

Details

The Kuiper test for uniformity is based on the following statistic:

V = \max_i≤ft(\frac{i}{n}-X_{(i)}\right) + \max_i≤ft(X_{(i)}-\frac{i-1}{n}\right)

The p-value is computed by Monte Carlo simulation.

Value

A list with class "htest" containing the following components:

statistic

the value of the Kuiper statistic.

p.value

the p-value for the test.

method

the character string "Kuiper test for uniformity".

data.name

a character string giving the name(s) of the data.

Author(s)

Maxim Melnik and Ruslan Pusev

References

Kuiper, N.H. (1960): Tests concerning random points on a circle. — Proc. Kon. Ned. Akad. Wetensch., Ser. A, vol. 63, pp. 38–47.

Examples

1
2
kuiper.unif.test(runif(100,0,1))
kuiper.unif.test(rbeta(100,0.5,0.5))

NeKp0T/uniftest documentation built on Dec. 1, 2019, 12:33 a.m.