Usage
mlgarchSim(n, constant = c(0,0), arch = diag(c(0.1, 0.05)), garch = diag(c(0.7, 0.8)), xreg = NULL, backcast.values = list(lnsigma2 = NULL, lnz2 = NULL, xreg = NULL), innovations = NULL, innovations.vcov = diag(rep(1, length(constant))), check.stability = TRUE, verbose = FALSE)
Arguments
n
integer, i.e. number of observations
constant
vector with the values of the intercepts in the log-volatility specification
arch
matrix with the arch coefficients
garch
matrix with the garch coefficients
xreg
a vector (of length n) or matrix (with rows n) with the values of the conditioning variables. The first column enters the first equation, the second enters the second equation, and so on
backcast.values
backcast values for the recursion (chosen automatically if NULL)
check.stability
logical. If TRUE (default), then the system is checked for stability
innovations
Either NULL (default) or a vector or matrix of length n with the standardised errors. If NULL, then the innovations are multivariate N(0,1) with correlations equal to zero
innovations.vcov
numeric matrix, the variance-covariance matrix of the standardised multivariate normal innovations. Only applicable if innovations = NULL
verbose
logical. If FALSE (default), then only the matrix with the y series is returned. If TRUE, then also additional information is returned