Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

meandeviation

A measure of deviation for Circular Data


Description

Returns a measure of spread associated with the circular median of a vector of circular data.

Usage

meandeviation(x, na.rm = FALSE)

Arguments

x

a vector. The object is coerced to class circular.

na.rm

logical, indicating if NA's should be omitted.

Details

See equation (2.33) at pag. 36 in Fisher (1993) for its definition. In the case the circular median is not defined, that is, every angle is a median axis, the mean deviation is not reported and set to NA.

Value

Returns a measure of spread associated with the circular median of a vector of circular data.

Author(s)

Claudio Agostinelli and Alessandro Gagliardi

References

N.I. Fisher (1993) Statistical Analysis of Circular Data, Cambridge University Press.

See Also

Examples

x <- rvonmises(n=100, mu=circular(0), kappa=1)
meandeviation(x)

circular

Circular Statistics

v0.4-93
GPL-2
Authors
Ulric Lund <ulund@calpoly.edu> [aut], Claudio Agostinelli <claudio.agostinelli@unitn.it> [aut, cre], Hiroyoshi Arai <h_arai@aoni.waseda.jp> [ctb], Alessando Gagliardi <gagliardi@stud.unive.it> [ctb], Eduardo Garcia Portugues <edgarcia@est-econ.uc3m.es> [ctb], Dimitri Giunchi <dimitri.giunchi@unipi.it> [ctb], Jean-Olivier Irisson <irisson@normalesup.org> [ctb], Matthew Pocernich <pocernic@ucar.edu> [ctb], Federico Rotolo [ctb]
Initial release
2017-06-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.