Learn R Programming

circular (version 0.5-1)

rao.test: Rao's Tests for Homogeneity

Description

Performs Rao's test for homogeneity on k populations of angular data.

Usage

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

Value

A list with the statistic and p.value for the mean and the dispersion and the value of alpha.

Arguments

...

a sequence of circular for the rao.test and further arguments passed to or from other methods for the print.rao.test function.

alpha

numeric value specifying the significance level of the test. Default is 0, in which case p-values for the test statistic is printed.

x

an object from the rao.test.

digits

integer indicating the precision to be used.

Author

Claudio Agostinelli and Ulric Lund

Details

Critical values and p-values are determined according to the chi-squared approximation of the test statistic.

References

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

Rao, J.S. (1967). Large sample tests for the homogeneity of angular data, Sankhya, Ser, B., 28.

Examples

Run this code
x <- rvonmises(100, circular(0), kappa=10)
y <- rvonmises(100, circular(0), kappa=10)

rao.test(x, y)

Run the code above in your browser using DataLab