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

Correlation between two spherical variables.

1 | ```
spher.cor(x, y)
``` |

`x` |
A spherical variable. A matrix with thre columns, each row is a unit vector. |

`y` |
A spherical variable. A matrix with thre columns, each row is a unit vector. |

A very similar to the classical correlation is calcualted. In addition, a hypothesis test for no correlation is performed. Note, that this is a squared correlation actually, so negative values will never be returned.

A vector including:

`R-squared` |
The value of the squared correlation. |

`p-value` |
The p-value of the no correlation hypothesis testing. |

Michail Tsagris

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Giorgos Athineou <gioathineou@gmail.com>

Kanti V. Mardia and Peter E. Jupp. Directional statistics, pg. 254–255.

```
spher.reg, vmf.mle, circ.cor1, circ.cor2
```

1 2 3 |

```
R-squared p-value
0.14926006 0.09298862
```

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.