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)

Arguments

x time series the number of iteration only for non-seasonal series Allowing Box-cox transformation

Value

index

Indicating the index of outlier(s)

replacement

Suggested numeric values to replace identified outliers

na.interp, tsclean

tsoutliers(gold)#> $index #> [1] 770 #> #>$replacements