circular (version 0.4-93)

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.

Value

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

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
# NOT RUN {
x <- rvonmises(n=100, mu=circular(0), kappa=1)
meandeviation(x)
# }

Run the code above in your browser using DataLab