intervention
estimates the effect of a intervention at a known time.
# S3 method for tfm
intervention(
mdl,
y = NULL,
type,
time,
n.ahead = 0,
envir = parent.frame(),
...
)intervention(mdl, ...)
# S3 method for um
intervention(
mdl,
y = NULL,
type,
time,
n.ahead = 0,
envir = parent.frame(),
...
)
a "ts" object, optional.
the type intervention (pulse, step, ramp) or the type of outlier (AO, LS, TC, IO).
the date of the intervention, in format c(year, season).
a positive integer to extend the sample period of the
intervention variable with n.ahead
observations, which could be
necessary to forecast the output.
the environment in which to look for the time series z when it is passed as a character string.
additional arguments.
an object of class "tfm
" or a table.