Description Usage Arguments Details Value See Also
Hampel filter for detecting and substituting outliers in the environmental and sap flow data.
1 2 | out_hampel_filter(y, k = 5L, t0 = 3L, method = "hampel", reverse = TRUE,
parent_logger = "test")
|
y |
vector of values for outlier substitution |
k |
window semi-value (integer) for substitution value calculation. See details. |
t0 |
Integer value indicating the number of standard deviations for outlier detection threshold. |
method |
Character vector indicating the method to use in the estimation:
|
reverse |
Logical indicating if in case of k is bigger than the data length (i.e in the extremes of the vector) a reverse replication must be done. Default to TRUE. |
This is a modified version of the Hampel filter to avoid breaking when NAs are present in the data. Options include the posibility of using the median (classic Hampel, default), tukeyline or quantile regression estimations.
A list with two elements:
res: A vector of the same length as y with the ouliers value substituted by the estimation
index: A vector indicating which TIMESTAMPS have been modified
Other outliers: out_remove
,
outlier_subs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.