Learn R Programming

rugarch (version 1.0-3)

uGARCHsim-class: class: Univariate GARCH Simulation Class

Description

Class for the univariate GARCH simulation.

Arguments

Extends

Class "GARCHsim", directly. Class "rGARCH", by class "GARCHsim", distance 2.

See Also

Classes uGARCHforecast, uGARCHfit and uGARCHspec.

Examples

Run this code
# 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"))

Run the code above in your browser using DataLab