Learn R Programming

VecStatGraphs2D (version 1.8)

RayleighTest: Rayleigh test. Formal test of uniformity

Description

This function performs the Rayleigh test of uniformity.

Usage

RayleighTest(azimuths)

Arguments

azimuths
Vector containing the values of the azimuths

Value

Returns the value of the probability of accepting the hypothesis of uniformity.

Details

This test detects a single modal direction in a sample of azimuths when the mean azimuth is unspecified. The hypothesis of uniformity is rejected if the mean module is very large. This test assumes that a large mean module implies a high concentration around the mean and, therefore, less probability that the data are uniformly distributed.

One way to obtain a set of azimuths from X and Y coordinates of the vectors is to use the LoadData function.

References

Fisher N.I. (1995) Statistical analysis of circular data. Cambridge. Cambridge University Press. Website http://gim.unex.es/VecStatGraphs2D/

See Also

DrawQQPlot, RaoTest.

Examples

Run this code
   FileName<-system.file("data/RectangularData.txt", package="VecStatGraphs2D")
   dat<-LoadData(FileName, Type=2)
   azimuths<-dat[,2]
   RayleighTest(azimuths)

Run the code above in your browser using DataLab