mad: Median Absolute Deviation

Description Usage Arguments Details Examples

Description

Median Absolute Deviation

Usage

1
mad(x, na.rm = FALSE)

Arguments

x

numeric vectors whose median absolute deviation is wanted

na.rm

logical; if true, any NA and NaN's are removed from x before the quantiles are computed.

Details

MAD is computed by subtracting the median from each observation, taking the absolute value of each difference, and then computing the median.

Typically, MAD is divided by 0.6745. MADN = MAD / 0.6745

Examples

1
2
x <- c(12,45,23,79,19,92,30,58,132)
mad(x)

shizidushu/fsrs documentation built on May 26, 2019, 4:32 a.m.