Description Extends Methods Note Author(s) See Also Examples
Class for the univariate GARCH simulation.
Class "GARCHsim"
, directly.
Class "rGARCH"
, by class "GARCHsim", distance 2.
signature(x = "uGARCHsim")
: extracts the simulated values (see note).
signature(x = "uGARCHsim", y = "missing")
: simulation plots.
signature(object = "uGARCHsim")
: simulation summary.
The as.data.frame
function takes optionally 1 additional arguments, namely which
,
indicating the type of simulation series to extract. Valid values are “sigma” for the simulated
sigma, “series” for the simulated series and “residuals” for the simulated residuals.
The dimension of the data.frame
will be n.sim
by m.sim
.
Alexios Ghalanos
Classes uGARCHforecast
, uGARCHfit
and
uGARCHspec
.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# Basic GARCH(1,1) Spec
data(dmbp)
spec = ugarchspec()
fit = ugarchfit(data = dmbp[,1], spec = spec)
sim = ugarchsim(fit,n.sim=1000, n.start=1, m.sim=1, startMethod="sample")
sim
# plot(sim, which="all")
# as.data.frame takes an extra argument which
# indicating one of "sigma", "series" and "residuals"
head(as.data.frame(sim, which = "sigma"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.