Description Usage Arguments Value Examples
robust zscore implementation takes in a 1D vector, returns 1D vector after computing robust zscores rZ = (x-med(x))/mad(x)
1 | robust_zscore(x, min_mad = 1e-06, ...)
|
x |
numeric vector to z-score |
min_mad |
the minimum allowed MAD, useful for avoiding division by very small numbers |
... |
further options to median, max functions |
transformed version of x
1 2 3 4 5 | (x <- rnorm(25))
(robust_zscore(x))
# with min_mad
(robust_zscore(x, min_mad=1e-4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.