CircStats (version 0.2-6)

watson: Watson's Test

Description

Performs a Watson's goodness of fit test for the von Mises or circular uniform distribution.

Usage

watson(x, alpha=0, dist='uniform')

Arguments

x

vector of angular measurements in radians.

alpha

significance level of the test. Valid levels are 0.01, 0.05, 0.1. This argument may be ommited, in which case, a range for the p-value will be returned.

dist

distribution to test for. The default is the uniform distribution. To test for the von Mises distribution, set dist = 'vm'.

Value

NULL

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, kuiper, rao.spacing, r.test, v0.test

Examples

Run this code
# NOT RUN {
# Generate data from the uniform distribution on the circle.
data <- runif(100, 0, 2*pi)  
watson(data)
# Generate data from a von Mises distribution.
data <- rvm(50, 0, 4) 
watson(data, 0.05, dist='vm')
# }

Run the code above in your browser using DataLab