CircStats (version 0.2-6)

v0.test: Rayleigh Test of Uniformity: Alternative with Specified Mean Direction

Description

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

Usage

v0.test(x, mu0=0, degree=FALSE)

Arguments

x

vector of angular measurements in radians.

mu0

Specified mean direction in alternative hypothesis, measured in the same units (degrees or radians) as the data.

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, r0.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.3 and 3.4.1, World Scientific Press, Singapore.

See Also

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

Examples

Run this code
# NOT RUN {
data <- rvm(25, pi, 2)
v0.test(data, mu0=pi)
# }

Run the code above in your browser using DataLab