Learn R Programming

circular (version 0.1)

rayleigh.test: Rayleigh Test of Uniformity

Description

Performs a Rayleigh test of uniformity, assessing the significance of the mean resultant length. The alternative hypothesis is a unimodal distribution with unknown mean direction and unknown mean resultant length if mu is missing otherwise the alternative hypothesis is a unimodal distribution with a specified mean direction and unknown mean resultant length.

Usage

rayleigh.test(x, mu)
## S3 method for class 'rayleigh.test':
print(x, digits=4, \dots)

Arguments

x
a vector. The object is coerced to class circular.
mu
Specified mean direction in alternative hypothesis.
digits
integer indicating the precision to be used.
...
further arguments passed to or from other methods.

Value

  • Returns a list with three components: the mean resultant length, statistic, the p-value of the test statistic, p.value and the value of the alternative mean direction mu.

References

Jammalamadaka, S. Rao and SenGupta, A. (2001). Topics in Circular Statistics, Sections 3.3.2 and 3.4.1, World Scientific Press, Singapore.

See Also

range.circular, kuiper.test, rao.spacing.test and watson.test

Examples

Run this code
x <- rvonmises(n=25, mu=pi, kappa=2)
# General alternative
rayleigh.test(x)
# Specified alternative
rayleigh.test(x, mu=0)

Run the code above in your browser using DataLab