View source: R/tests_regular.R
mad | R Documentation |
Compute a robust median absolute deviation (MAD)
mad(data, centile = 50, medianCorrected = TRUE)
data |
The data for which we compute the robust deviation |
centile |
The centile used to exclude extreme values (only the "centile" part of the data are is to compute the mad) |
medianCorrected |
TRUE if the series is corrected for its median, FALSE if the median is supposed to be 0 |
The median absolute deviation
y <- rnorm(1000)
m <- rjd3toolkit::mad(y, centile = 70)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.