Usage
lgarch(y, arch = 1, garch = 1, xreg = NULL, initial.values = NULL,
backcast.values = list(lny2 = NULL, lnz2 = NULL, xreg = NULL), lower = NULL,
upper = NULL, nlminb.control = list(), vcov = TRUE, method="ml",
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
a vector or a matrix with the conditioning variables
initial.values
NULL (default) or a vector with the initial values
backcast.values
initial values used for the recursions during optimisation. If the values are NULL, then the values are automatically chosen
lower
NULL (default) or a vector with the lower bounds of the parameter space. If NULL, then the values are automatically chosen
upper
NULL (default) or a vector with the upper bounds of the parameter space. 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. This is needed for subsequent extraction of the variance-covariance matrix. The FALSE options makes estimation faster, but the variance-covariance matrix cannot be extracted subs
method
Estimation method, either "ml" (default), i.e. Gaussian QML, or "ls", i.e. Nonlinear Least Squares
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, which are fatal for simulations. The value objective.penalty is the value ret
solve.tol
The function solve is used for the inversion of the Hessian in computing the variance-covariance matrix. The value solve.tol is passed on to solve and is the tol c.code
logical. TRUE (default) is (much) faster since it makes use of compiled C-code