circ.cors1: Circular correlations between two circular variables

View source: R/circ.cors1.R

Circular correlations between one and many circular variablesR Documentation

Circular correlations between two circular variables

Description

Circular correlations between two circular variables.

Usage

circ.cors1(theta, phi, rads = FALSE)
circ.cors2(theta, phi, rads = FALSE)

Arguments

theta

The first cirular variable expressed in radians, not degrees.

phi

The other cirular variable. In the case of "circ.cors1" this is a matrix with many circular variables. In either case, the values must be in radians, not degrees.

rads

If the data are expressed in rads, then this should be TRUE. If the data are in degrees, then this is FALSE.

Details

Correlation for circular variables using the cosinus and sinus formula of Jammaladaka and SenGupta (1988).

Value

A matrix with two columns, the correlations and the p-values.

Author(s)

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

References

Jammalamadaka, R. S. and Sengupta, A. (2001). Topics in circular statistics. World Scientific.

Jammalamadaka, S. R. and Sarma, Y. R. (1988). A correlation coefficient for angular variables. Statistical Theory and Data Analysis, 2:349–364.

Mardia, K. V. and Jupp, P. E. (2000). Directional statistics. Chicester: John Wiley & Sons.

See Also

spml.reg

Examples

y <- runif(50, 0, 2 * pi)
x <- matrix(runif(50 * 10, 0, 2 * pi), ncol = 10)
circ.cors1(y, x, rads = TRUE)

Directional documentation built on Oct. 12, 2023, 1:07 a.m.