Circular-linear correlation | R Documentation |

It calculates the squared correlation between a circular and one or more linear variables.

```
circlin.cor(theta, x)
```

`theta` |
A circular variable expressed in radians. |

`x` |
The linear variable or a matrix containing many linear variables. |

The squared correlation between a circular and one or more linear variables is calculated.

A matrix with as many rows as linear variables including:

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

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

Michail Tsagris

R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr>

Mardia, K. V. and Jupp, P. E. (2000). Directional statistics. Chicester: John Wiley & Sons.

```
spml.reg
```

```
phi <- rvonmises(50, 2, 20, rads = TRUE)
x <- 2 * phi + rnorm(50)
y <- matrix(rnorm(50 * 5), ncol = 5)
res<-circlin.cor(phi, x)
res<-circlin.cor(phi, y)
y <- NULL
```

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.