gen.arch.wge | R Documentation |
Generates a realization of length n from the GARCH(q0) model (4.23) in "Applied Time Series Analysis with R, 2nd edition" by Woodward, Gray, and Elliott
gen.arch.wge(n, alpha0, alpha, plot = TRUE,sn=0)
n |
Length of realization to be generated |
alpha0 |
The constant alpha0 in model (4.23) |
alpha |
A vector of length q0 containing alpha1 through alphaq0 |
plot |
If plot=TRUE (default) the generated realization is plotted |
sn |
determines the seed used in the simulation. sn=0 produces new/random realization each time. sn=positive integer produces same realization each time |
returns the generated realization
Wayne Woodward
"Applied Time Series Analysis with R, 2nd edition" by Woodward, Gray, and Elliott
gen.arch.wge(n=200,alpha0=.1,alpha=c(.36,.27,.18,.09))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.