tsoutliers | R Documentation |
Uses supsmu for non-seasonal series and a periodic stl decomposition with seasonal series to identify outliers and estimate their replacements.
tsoutliers(x, iterate = 2, lambda = NULL)
x |
time series |
iterate |
the number of iterations required |
lambda |
Box-Cox transformation parameter. If |
index |
Indicating the index of outlier(s) |
replacement |
Suggested numeric values to replace identified outliers |
Rob J Hyndman
Hyndman (2021) "Detecting time series outliers" https://robjhyndman.com/hyndsight/tsoutliers/.
na.interp
, tsclean
data(gold)
tsoutliers(gold)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.