Description Usage Arguments Details Value Examples
View source: R/circGLMClassFunctions.R
Estimates the mode as the midpoint of the highest density interval.
1 | modalDirection(th, modebw = 0.1)
|
th |
A vector of angles in radians. |
modebw |
Numeric between 0 and 1. The modes are estimated by taking the
midpoint of a highest density interval. Specifically, the mode is the
midpoint of the interval that contains |
The highest density interval is computed as the shortest interval containing
modebw
of the values in th
. For circular data however, this
definition is not useful, and we should instead look for the shortest arc
that contains modebw
of the data. This is done by rotating the data
such that the mean direction is pi
, and then applying the usual linear
methods.
An angle in radians.
1 | modalDirection(rvmc(30, 0, 2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.