Wrapper around rjd3x13::regarima_outliers() to detect Additive Outliers (AO) or
Level Shifts (LS) in a seasonally adjusted series.
Usage
x13_regarima_outliers(
y,
order = c(0, 1, 1),
mean = FALSE,
ao = TRUE,
ls = TRUE
)Arguments
- y
A time series object (class
"ts").- order
An integer vector of length 3 specifying the non-seasonal ARIMA orders \((p, d, q)\).
- mean
Logical. If
TRUE, the model includes a constant term.- ao, ls
Logical flags indicating whether Additive Outliers (AO) and Level Shifts (LS) should be detected, respectively.
Value
A list with two components:
ao: A vector of dates where Additive Outliers were detected (orNULLif none).ls: A vector of dates where Level Shifts were detected (orNULLif none).