Spherical and hyper-spherical distance correlation | R Documentation |
Spherical and hyper-spherical distance correlation.
spher.dcor(x, y)
x |
A matrix with directional data, i.e. unit vectors. |
y |
A matrix with directional data, i.e. unit vectors. |
The distance correlation between two spherical or hyper-spherical variables 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.
circ.dcor
y <- rvmf(50, rnorm(3), 4)
x <- rvmf(50, rnorm(3), 4)
spher.dcor(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.