Learn R Programming

litteR (version 1.0.0)

rmad: Relative Median Absolute Deviation

Description

This is the Median Absolute Deviation divided by the median and is similar to the coefficient of variation.

Usage

rmad(x, na.rm = FALSE)

Value

Relative median absolute deviation (numeric vector of length 1).

Arguments

x

a numeric vector

na.rm

logical. Should missing values be removed?

References

https://en.wikipedia.org/wiki/Median_absolute_deviation