Distance correlation matrix | R Documentation |

Distance correlation matrix.

```
dcora(x)
```

`x` |
A numerical matrix. |

The distance correlation matrix is computed.

A matrix with the pairwise distance correlations between all variables in x.

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.

```
cor_test, covar
```

```
x <- as.matrix( iris[1:50, 1:4] )
res <- dcora(x)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.