uv_tsout_ens.RdPerforms univariate time series outlier ensemble.
uv_tsout_ens(x, frequency = 1, dates = NULL)A univariate time series as either a ts object or a vector.
The frequency associated with the time series
The dates associated with the time series. This is needed for the package anomalize. If not explicitly set dates are set at a frequency 1 ending on the system date.
A list with the following components:
outliersThe outliers detected, repeated if detected by multiple outlier methods.
forcastOutThe outliers detected R package forecast.
tsoutliersOutThe outliers detected R package tsoutliers.
otsadOutThe outliers detected R package otsad.
anomalizeOutThe outliers detected R package anomalize.
outmatA matrix containing zeros and ones, with ones representing time points identified as outliers from different methods.
if (FALSE) {
set.seed(100)
n <- 500
x <- sample(1:100, n, replace=TRUE)
x[25] <- 200
x[320] <- 270
df <- data.frame(timestamp=1:n, value=x)
plot(ts(df$value))
out <- uv_tsout_ens(x)
out
}