Circular distance correlation between two circular variables | R Documentation |
Circular distance correlation between two circular variables.
circ.dcor(theta, phi, rads = FALSE)
theta |
The first cirular variable. |
phi |
The other cirular variable. |
rads |
If the data are expressed in rads, then this should be TRUE. If the data are in degrees, then this is FALSE. |
The angular data are transformed to their Euclidean coordinates and then the distance correlation is computed.
A list including:
dcov |
The distance covariance. |
dvarX |
The distance variance of x. |
dvarY |
The distance variance of Y. |
dcor |
The distance correlation. |
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
G.J. Szekely, M.L. Rizzo and N. K. Bakirov (2007). Measuring and Testing Independence by Correlation of Distances. Annals of Statistics, 35(6):2769-2794.
circlin.cor, circ.cor2, spher.dcor
y <- runif(50, 0, 2 * pi)
x <- runif(50, 0, 2 * pi)
circ.dcor(x, y, rads = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.