Uses supsmu for non-seasonal series and a periodic stl decomposition with seasonal series to identify outliers. To estimate missing values and outlier replacements, linear interpolation is used on the (possibly seasonally adjusted) series

tsclean(x, replace.missing = TRUE, lambda = NULL)

## Arguments

x time series If TRUE, it not only replaces outliers, but also interpolates missing values a numeric value giving the Box-Cox transformation parameter

## Value

Time series

na.interp, tsoutliers, supsmu

cleangold <- tsclean(gold)