View source: R/gen.garch.wge.R
gen.garch.wge | R Documentation |
Generates a realization of length n from the GARCH(p0,q0) model (4.26) in "Applied Time Series Analysis with R, 2nd edition" by Woodward, Gray, and Elliott
gen.garch.wge(n,alpha0,alpha,beta,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 |
beta |
A vector of length p0 containing beta1 through betap0 |
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.garch.wge(n=200,alpha0=.1,alpha=.45,beta=.45)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.