kuiper: Kuiper's Test

Description Usage Arguments Details Value Note References See Also Examples

Description

Performs Kuiper's one-sample test of uniformity on the circle.

Usage

1
kuiper(x, alpha=0)

Arguments

x

vector of angular measurements in radians.

alpha

significance level of the test. Possible levels are 0.15, 0.1, 0.05, 0.025, 0.01. Alpha may be omitted or set to zero, in which case a range for the p-value of the test will be returned.

Details

Kuiper's test statistic is a rotation-invariant Kolmogorov-type test statistic. The critical values of a modified Kuiper's test statistic are used according to the tabulation given in Stephens (1970).

Value

NULL

Note

Kuiper's one-sample test of uniformity is performed, and the results are printed to the screen. If alpha is specified and non-zero, the test statistic is printed along with the critical value and decision. If alpha is omitted, the test statistic is printed and a range for the p-value of the test is given.

References

Jammalamadaka, S. Rao and SenGupta, A. (2001). Topics in Circular Statistics, Section 7.2, World Scientific Press, Singapore.

Stephens, M. (1970). Use of the Kolmogorov-Smirnov, Cramer-von Mises and related statistics without extensive tables. Journal of the Royal Statistical Society, B32, 115-122.

See Also

circ.range, rao.spacing, r.test, v0.test, watson

Examples

1
2
3
4
5
6
# Generate data from the uniform distribution on the circle.
data <- runif(100, 0, 2*pi)
kuiper(data)
# Generate data from the von Mises distribution.
data <- rvm(100, 0, 3)
kuiper(data, alpha=0.01)

Example output

Loading required package: MASS
Loading required package: boot

       Kuiper's Test of Uniformity 
 
Test Statistic: 1.1064 
P-value > 0.15 
 

       Kuiper's Test of Uniformity 
 
Test Statistic: 6.0491 
Level 0.01 Critical Value: 2.001 
Reject Null Hypothesis 
 

CircStats documentation built on May 2, 2019, 2:24 a.m.

Related to kuiper in CircStats...