Uses supsmu for non-seasonal series and a periodic stl decompostion with seasonal series to identify outliers and estimate their replacements.
tsoutliers(x, iterate = 2, lambda = NULL)
time series
the number of iteration only for non-seasonal series
Allowing Box-cox transformation
Indicating the index of outlier(s)
Suggested numeric values to replace identified outliers
# NOT RUN {
data(gold)
tsoutliers(gold)
# }
Run the code above in your browser using DataLab