circ.cors1: Circular correlations between two circular variables

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/circ.cors1.R

Description

Circular correlations between two circular variables.

Usage

1
circ.cors1(theta, phi)

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.

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.

See Also

spml.reg

Examples

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

Example output

sh: 1: wc: Permission denied
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl.init' failed, running with 'rgl.useNULL = TRUE'. 
              rho    p-value
 [1,]  0.06605969 0.64769016
 [2,]  0.07504598 0.59025511
 [3,]  0.02781125 0.84561087
 [4,]  0.11678500 0.41305020
 [5,]  0.22185803 0.11512540
 [6,]  0.05614943 0.67318732
 [7,]  0.03905839 0.78645506
 [8,]  0.28363588 0.03841392
 [9,]  0.03556277 0.78816992
[10,] -0.15417385 0.26429876

Directional documentation built on May 26, 2021, 5:07 p.m.