Calculates a non-parametric version of the coefficient of
variation where the standard deviation is replaced by the median
absolute deviations (see mad
for details) and
divided by the absolute value of the mean.
npcv(x, na.rm = TRUE)
A numeric
.
A logical
(default is TRUE
indicating
whether NA
values should be stripped before the computation
of the median absolute deviation and mean.
A numeric
.
Note that the mad
of a single value is 0 (as opposed to
NA
for the standard deviation, see example below).