Usage
ugarchsim(fit, n.sim = 1000, n.start = 0, m.sim = 1,
startMethod = c("unconditional", "sample"), presigma = NA, prereturns = NA,
preresiduals = NA, rseed = NA, custom.dist = list(name = NA, distfit = NA),
mexsimdata = NULL, vexsimdata = NULL, ...)
Arguments
fit
A univariate GARCH fit object of class uGARCHfit
.
n.sim
The simulation horizon.
n.start
The burn-in sample.
m.sim
The number of simulations.
startMethod
Starting values for the simulation. Valid methods are unconditional for
the expected values given the density, and sample for the ending values
of the actual data from the fit object.
presigma
Allows the starting sigma values to be provided by the user.
prereturns
Allows the starting return data to be provided by the user.
preresiduals
Allows the starting residuals to be provided by the user.
rseed
Optional seeding value(s) for the random number generator. For m.sim>1, it is
possible to provide either a single seed to initialize all values, or one seed
per separate simulation (i.e. m.sim seeds). However, in the latter case this may
result in s
custom.dist
Optional density with fitted object from which to simulate. See notes below for
details.
mexsimdata
List of matrices (size of list m.sim, with each matrix having n.sim rows) of
simulated external regressor-in-mean data. If the fit object contains
external regressors in the mean equation, this must be provided else will be
assumed zero.
vexsimdata
List of matrices (size of list m.sim, with each matrix having n.sim rows) of
simulated external regressor-in-variance data. If the fit object contains
external regressors in the mean equation, this must be provided else will be
assumed zero.