View source: R/apply_hampel_identifier.R
apply_hampel_identifier | R Documentation |
The Hampel identifier is robust against outliers and omits all missing
(NA
) elements before calculation.
apply_hampel_identifier(x, k = 60, t0 = 3, values = FALSE, na_preserve = TRUE)
x |
A numeric vector, typically a time series. |
k |
An integer representing the window length of |
t0 |
The outlier threshold. The default of 3 is Ron Pearson's three-sigma edit rule. |
values |
Should the filtered verson of the |
na_preserve |
If |
Numeric or logical vector depending on values
.
Hans W. Borchers and Stuart K. Grange
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.