Calculates the mean absolute deviation from the sample mean
aad(x, na.rm = FALSE)
A vector containing the observations.
A logical value indicating whether or not missing values should be removed. Defaults to FALSE
Numeric
The aad
function calculates the average (i.e. mean)
absolute deviation from the mean value of x
, removing NA
values if requested by the user. It exists primarily to simplify the
discussion of descriptive statistics during an introductory stats class.