tsoutliers

0th

Percentile

Identify and replace outliers in a time series

Uses loess for non-seasonal series and a periodic stl decompostion with seasonal series to identify and replace outliers.

Keywords
ts
Usage
tsoutliers(x, iterate = 2, lambda = NULL)
Arguments
x
time series
iterate
the number of iteration only for non-seasonal series
lambda
Allowing Box-cox transformation
Value

  • indexIndicating the index of outlier(s)
  • replacementSuggested numeric values to replace identified outliers

See Also

na.interp, tsclean

Aliases
  • tsoutliers
Examples
data(gold)
tsoutliers(gold)
Documentation reproduced from package forecast, version 5.3, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.