| ds_mdev | R Documentation |
Compute the mean absolute deviation about the mean
ds_mdev(data, x = NULL)
data |
A numeric vector or |
x |
Column in |
The ds_mdev function computes the mean absolute deviation
about the mean. It is different from mad in stats package as
the statistic used to compute the deviations is not median but
mean. Any NA values are stripped from x before computation
takes place
mad
# vector
ds_mdev(mtcars$mpg)
# data.frame
ds_mdev(mtcars, mpg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.