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

A log-likelihood ratio test for testing whether the sample mena direction is equal to some predefined one.

1 | ```
meandir.test(x, mu, B = 999)
``` |

`x` |
A matrix with the data, unit vectors. |

`mu` |
A unit vector with the hypothesized mean direction. |

`B` |
A number either 1, so no bootstrap calibration is performed or more than 1, so bootstrap calibration is performed. |

The log-likelihood ratio test is performed.

A list including:

`mean.dir` |
The sample mean direction |

`pvalue` |
The p-value of the test. |

Michail Tsagris

R implementation and documentation: Michail Tsagris <[email protected]> and Giorgos Athineou <[email protected]>

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

1 2 3 4 5 | ```
mu <- rnorm(5)
mu <- mu / sqrt( sum(mu^2) )
x <- rvmf(100, mu, 10)
meandir.test(x, mu, 1)
meandir.test(x, mu, 499)
``` |

```
$mean.dir
[1] -0.28847518 -0.76989934 -0.50762972 -0.24292473 0.08565465
$pvalue
[1] 0.8024124
$mean.dir
[1] -0.28847518 -0.76989934 -0.50762972 -0.24292473 0.08565465
$pvalue
[1] 0.796
```

Directional documentation built on March 19, 2018, 5:05 p.m.

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.