Skip to content
Prev 12000 / 15274 Next

Using own simulations in package rugarch

1. Did you read the documentation on ugarchpath or ugarchsim?
"custom.dist: Optional density with fitted object from which to simulate."
The custom.dist option allows for defining a custom density which exists
in the users workspace with methods for ?r? (sampling, e.g. rnorm) and
?d? (density e.g. dnorm). It must take a single fit object as its second
argument. Alternatively, custom.dist can take any name in the name slot
(e.g.?sample?) and a matrix in the fit slot with dimensions equal to
m.sim (columns) and n.sim (rows). The usefulness of this becomes
apparent when one is considering the copula-GARCH approach or the
bootstrap method.

2. A simple search of this mailing list's archives would also have
answered your question with an example:
https://stat.ethz.ch/pipermail/r-sig-finance/2012q2/010305.html

3. rugarch.test1g in the rugarch.tests folder also contains an example
of this.

-Alexios
On 04/11/2013 12:52, Stefan.Jaeschke at rwe.com wrote: