Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rao.spacing.test

Rao's Spacing Test of Uniformity


Description

Performs Rao's spacing test of uniformity.

Usage

rao.spacing.test(x, alpha=0)
## S3 method for class 'rao.spacing.test'
print(x, digits = 4, ...)

Arguments

x

a vector. The object is coerced to class circular.

alpha

numeric value specifying the significance level of the test. The default value is 0, in which case, a range for the p-value will be returned. Valid significance levels are 0.10, 0.05, 0.01 and 0.001.

digits

integer indicating the precision to be used.

...

further arguments passed to or from other methods.

Details

If alpha is specified, critical values are determined (using the print function) from a table of simulated critical points (see reference below); in this case the print function return a further value accepted which is TRUE if the null hypothesis is accepted and FALSE otherwise. If alpha is not specified, a range for the p-value is determined using the table of simulated critical points in the print function but not reported.

Value

a list with the statistic, alpha and the number of observations.

Author(s)

Claudio Agostinelli and Ulric Lund

References

Jammalamadaka, S. Rao and SenGupta, A. (2001). Topics in Circular Statistics, Section 7.4, World Scientific Press, Singapore.

Rao, J.S. (1976). Some tests based on arc-lengths for the circle. Sankhya, The Indian Journal of Statistics, Serial B(4), 38, 329-338.

Russell, G.S. and Levitin, D.J. (1995). An expanded table of probability values for Rao's Spacing Test. Communications in Statistics - Simulation and Computation, 24, 4, 879-888.

See Also

Examples

x <- circular(runif(200, 0, 2*pi))
rao.spacing.test(x)

res <- print(rao.spacing.test(x, alpha=0.1))
res$accepted

x <- rvonmises(100, circular(0), 20)
rao.spacing.test(x)

circular

Circular Statistics

v0.4-93
GPL-2
Authors
Ulric Lund <ulund@calpoly.edu> [aut], Claudio Agostinelli <claudio.agostinelli@unitn.it> [aut, cre], Hiroyoshi Arai <h_arai@aoni.waseda.jp> [ctb], Alessando Gagliardi <gagliardi@stud.unive.it> [ctb], Eduardo Garcia Portugues <edgarcia@est-econ.uc3m.es> [ctb], Dimitri Giunchi <dimitri.giunchi@unipi.it> [ctb], Jean-Olivier Irisson <irisson@normalesup.org> [ctb], Matthew Pocernich <pocernic@ucar.edu> [ctb], Federico Rotolo [ctb]
Initial release
2017-06-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.