fEGarch_sim {fEGarch} | R Documentation |
Simulate From Models of the Broader EGARCH Family
Description
A streamlined simulation function to simulate from models
that are part of the broader EGARCH family specifiable
through fEGarch_spec
.
Usage
fEGarch_sim(
spec = egarch_spec(),
pars = list(mu = 0, ar = numeric(0), ma = numeric(0), D = 0, omega_sig = -9, phi = 0.8,
psi = numeric(0), kappa = -0.2, gamma = 0.3, d = 0, df = 10, shape = 2, P = 3, skew =
1),
n = 1000,
nstart = 5000,
trunc = "none"
)
Arguments
spec |
an object of class |
pars |
a named list with the parameter specifications; the user can provide a named list with only the settings they would like to adjust relative to the default settings. |
n |
the number of observations to return. |
nstart |
the number of burn-in observations to simulate before
the final |
trunc |
a truncation for the finite-order coefficient series
in long-memory models; can either be the character |
Details
See the documentation on fEGarch_spec
for information
on the models of the broader EGARCH family. This function provides
an easy way to simulate from these models.
Value
A list with four elements is returned: rt
are the simulated
observations, etat
are the underlying innovations,
sigt
are the correspondingly simulated conditional
standard deviations, and cmeans
are the simulated
conditional means. These four elements are formatted as
"ts"
class time series objects.
Examples
spec <- megarch_spec()
sim <- fEGarch_sim(spec = spec)
mat <- do.call(cbind, sim)
plot(mat, main = "")