tsclean | R Documentation |
Uses supsmu for non-seasonal series and a robust STL decomposition for seasonal series. To estimate missing values and outlier replacements, linear interpolation is used on the (possibly seasonally adjusted) series
tsclean(x, replace.missing = TRUE, iterate = 2, lambda = NULL)
x |
time series |
replace.missing |
If TRUE, it not only replaces outliers, but also interpolates missing values |
iterate |
the number of iterations required |
lambda |
Box-Cox transformation parameter. If |
Time series
Rob J Hyndman
Hyndman (2021) "Detecting time series outliers" https://robjhyndman.com/hyndsight/tsoutliers/.
na.interp
,
tsoutliers
, supsmu
cleangold <- tsclean(gold)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.