Specifies a GARCH model prior to estimation.
garch_modelspec(
y,
model = "garch",
constant = FALSE,
order = c(1, 1),
variance_targeting = FALSE,
vreg = NULL,
multiplicative = FALSE,
init = c("unconditional", "sample", "backcast"),
backcast_lambda = 0.7,
sample_n = 10,
distribution = "norm",
...
)
An object of class “tsgarch.spec”.
an xts vector.
the type of GARCH model. Valid choices are “garch” for vanilla GARCH, “gjr” for asymmetric GARCH, “egarch” for exponential GARCH, “aparch” for asymmetric power ARCH, “csGARCH” for the component GARCH, “igarch” for the integrated GARCH.
whether to estimate a constant (mean) for y,
the (p,q) GARCH order.
whether to use variance targeting rather than estimating the conditional variance intercept.
an optional xts matrix of regressors in the conditional variance equation.
whether to exponentiate the contribution of the regressors else will be additive. In the case of the “egarch” model, since this is already a multiplicative model, the regressors are additive irrespective of the choice made.
the method to use to initialize the recursion of the conditional variance.
the decay power for the exponential smoothing used when initializing the recursion using the backcast method.
the number of data points to use when initializing the recursion using the sample method.
a valid distribution from the available re-parameterized distributions of the package.
not used.
Alexios Galanos
The specification object holds the information and data which is then passed to the maximum likelihood estimation routines.