r.test: Rayleigh Test of Uniformity: General Unimodal Alternative

View source: R/circular.R

r.testR Documentation

Rayleigh Test of Uniformity: General Unimodal Alternative

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.

Usage

r.test(x, degree=FALSE)

Arguments

x

vector of angular measurements in radians.

degree

logical flag: if TRUE, data is assumed to be measured in degrees rather than radians. Default is FALSE.

Value

Returns a list with two components: the mean resultant length, r.bar, and the p-value of the test statistic, p.value.

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

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

Examples

data <- rvm(25, pi, 2)
r.test(data)

CircStats documentation built on June 19, 2025, 5:07 p.m.

Related to r.test in CircStats...