Usage
lgarch(y, arch = 1, garch = 1, xreg = NULL, initial.values = NULL, lower = NULL, upper = NULL, nlminb.control = list(), vcov = TRUE, method=c("ls","ml","cex2"), mean.correction=FALSE, objective.penalty = NULL, solve.tol = .Machine$double.eps, c.code = TRUE)
Arguments
y
numeric vector, typically a financial return series or the error of a regression
arch
the arch order (i.e. an integer equal to or greater than 0). The default is 1. NOTE: in the current version the order canno be greater than 1
garch
the garch order (i.e. an integer equal to or greater than 0). The default is 1. NOTE: in the current version the order canno be greater than 1
xreg
vector or matrix with conditioning variables
initial.values
NULL (default) or a vector with the initial values of the ARMA-representation
lower
NULL (default) or a vector with the lower bounds of the parameter space (of the ARMA-representation). If NULL, then the values are automatically chosen
upper
NULL (default) or a vector with the upper bounds of the parameter space (of the ARMA-representation). If NULL, then the values are automatically chosen
nlminb.control
list of control options passed on to the nlminb
optimiser vcov
logical. If TRUE (default), then the variance-covariance matrix is computed. The FALSE options makes estimation faster, but the variance-covariance matrix cannot be extracted subsequently
method
Estimation method to use. Either "ls", i.e. Nonlinear Least Squares (default), "ml", i.e. Gaussian QML or "cex2", i.e. Centred exponential Chi-squared QML, see Francq and Sucarrat (2013). Note: For the cex2 method mean-correction = FALSE is not available
mean.correction
Whether to mean-correct the ARMA representation. Mean-correction is usually faster, but not always recommended if covariates are added (i.e. if xreg is not NULL)
objective.penalty
NULL (default) or a numeric value. If NULL, then the log-likelihood value associated with the initial values is used. Sometimes estimation can result in NA and/or +/-Inf values (this can be fatal for simulations). The value objective.penalty is the value returned by the objective function lgarchObjective
in the presence of NA or +/-Inf values solve.tol
The function solve
is used for the inversion of the negative of the Hessian in computing the variance-covariance matrix. The value solve.tol is passed on to solve
, and is the tolerance for detecting linear dependencies in the columns c.code
logical. TRUE (default) is (much) faster, since it makes use of compiled C-code in the recursions