rao.test | R Documentation |
Performs Rao's test for homogeneity on k populations of angular data.
rao.test(..., alpha=0)
## S3 method for class 'rao.test'
print(x, digits = 4, ...)
... |
a sequence of |
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 |
digits |
integer indicating the precision to be used. |
Critical values and p-values are determined according to the chi-squared approximation of the test statistic.
A list with the statistic and p.value for the mean and the dispersion and the value of alpha.
The test is performed, and the results are written to the screen. Test results are given for both the test of equality of polar vectors, and of dispersions. If alpha is specified, the test statistic is printed, along with the level critical value. If alpha is not specified, a p-value for the test is printed.
Claudio Agostinelli and Ulric Lund
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.
x <- rvonmises(100, circular(0), kappa=10)
y <- rvonmises(100, circular(0), kappa=10)
rao.test(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.