Creates a state space object object of class KuttnerModel
which can be
fitted using fit
.
KuttnerModel(
tsl,
cycle = "AR2",
cycleLag = 1,
trend = "RW1",
inflErrorARMA = c(0, 3),
start = NULL,
end = NULL,
anchor = NULL,
anchor.h = NULL
)
Object of class KuttnerModel
, which is a list with the following components:
A list of used time series.
An object of class SSModel specifying the state-space model.
A data frame containing information on each involved parameter, for instance its corresponding system matrix, variable names, and parameter restrictions.
Original call to the function.
In addition, the object contains the following attributes:
Cycle specification.
Trend specification.
A list containing the components cycleLag, errorARMA, exoVariables
.
A list containing the components value, horizon
.
A list containing the components start, end, frequency
.
A list of time series objects, see details.
A character string specifying the cycle model. cycle = "AR1"
denotes
an AR(1) process, cycle = "AR2"
an AR(2) process. The default is
cycle = "AR2"
.
A non-negative integer specifying the maximum cycle lag that is included
in the inflation equation. The default is cycleLag = 0
, see details.
A character string specifying the trend model. trend = "RW1"
denotes
a first order random walk, trend = "RW2"
a second order random walk (local linear
trend) and trend = "DT"
a damped trend model. The default is trend = "RW1"
.
A 2 x 1
vector with non-negative integers specifying the AR
and MA degree of the error term in the inflation equation. The default is
inflErrorARMA = c(0, 3)
, see details.
(Optional) Start vector for the estimation, e.g. c(1980, 1)
.
(Optional) End vector for the estimation, e.g. c(2020, 1)
.
(Optional) Anchor value for the logarithm of trend gdp.
(Optional) Anchor horizon in the frequency of the given time series.
The list of time series tsl
needs to have the following components:
Real gross domestic product.
Inflation.
A cycleLag
equal to 0
implies that only the contemporaneous cycle
is included in the inflation equation. A cycleLag
equal to 0:1
implies that
the contemporaneous as well as the lagged cycle are included.
A inflErrorARMA
equal to c(0, 0)
implies that the error term in the
inflation equation is white noise. inflErrorARMA = c(1, 0)
implies that the error is
an AR(1) process and for inflErrorARMA = c(1, 2)
the error follows an ARMA(1, 2)
process.
# load data for the Netherlands
data("gap")
country <- "Netherlands"
tsList <- as.list(gap[[country]][, c("cpih", "gdp")])
tsList$infl <- diff(tsList$cpih)
model <- KuttnerModel(tsl = tsList, trend = "RW2", start = 1980)
Run the code above in your browser using DataLab