intervention.variable | R Documentation |
Intervention variable
intervention.variable( frequency, start, length, s, starts, ends, delta = 0, seasonaldelta = 0 )
frequency |
Annual frequency (divisor of 12). |
start, length |
First date (array with the first year and the first period)
(for instance |
s |
time series used to get the dates for the trading days variables. If supplied the
parameters |
starts, ends |
characters specifying sequences of starts/ends dates for the intervention variable. Can be characters or integers. |
delta |
regular differencing order. |
seasonaldelta |
segular differencing order. |
Intervention variables are combinations of any possible sequence of ones and zeros
(the sequence of ones being defined by by the parameters starts
and ends
)
and of \frac{1}{(1-B)^d} and \frac{1}{(1-B^s)^D} where B is the
backwar operation, s is the frequency of the time series,
d and D are the parameters delta
and seasonaldelta
.
For example, with delta = 0
and seasonaldelta = 0
we get temporary level shifts defined
by the parameters starts
and ends
. With delta = 1
and seasonaldelta = 0
we get
the cumulative sum of temporary level shifts.
intervention.variable(12, c(2000, 1), 60, starts = "2001-01-01", ends = "2001-12-01") intervention.variable(12, c(2000, 1), 60, starts = "2001-01-01", ends = "2001-12-01", delta = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.