Learn R Programming

circular (version 0.5-1)

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)

Value

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

Arguments

x

a vector. The object is coerced to class circular.

na.rm

logical, indicating if NA's should be omitted.

Author

Claudio Agostinelli and Alessandro Gagliardi

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.

References

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

See Also

median.circular, sd.circular, angular.variance, angular.deviation, mean.circular, rho.circular and summary.circular.

Examples

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

Run the code above in your browser using DataLab