Learn R Programming

VecStatGraphs2D (version 1.6)

RaoTest: Rao test. Formal test of uniformity

Description

This function performs the Rao test of uniformity.

Usage

RaoTest(azimuths, Alpha = 0.01)

Arguments

azimuths
Vector containing the values of the azimuths
Alpha
Significance level. Value used to obtain the Rao Value of the Rao Table. The values can be 0.001, 0.005, 0.01, 0.05, 0.1, 0.5, or 0.9. The default is 0.01.

Value

  • Returns the probability value and indicates whether the hypothesis of uniformity can be accepted.

Details

For a uniform distribution, the space between points should be approximately 360/n. If the space deviates much from this value, then the probability that the data belong to a uniform distribution is reduced. One way to obtain a set of azimuths from X and Y coordinates of the vectors is to use the LoadData function. Typical usages are RaoTest(azimuths, \dots) ......

References

Bachelet E. (1981) Circular statistics in biology. London. London Academic Press. Jammalamadaka S.R., Sengupta A. (2001) Topic in circular statistics. Singapore. World Scientific Publihing. Mardia K.V. , Jupp, P.E. (2000) Directional statistics. Chichester. Wiley. Russell G.S. , Levitin D.J. (1995) An expanded table of probability values for Rao spacing test. Communications in Statistics: Simulation and Computation, 24(4), 879-888. Website http://gim.unex.es/VecStatGraphs2D/

See Also

ValuationOfUniformity, RayleighTest.

Examples

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

Run the code above in your browser using DataLab