Description Usage Arguments Value Author(s) See Also Examples
Fonction to simulate data from MGARCH(1,1) CCC-diagonal or semi-diagonal model
1 | GarchCCC.sim(n, omega, alpha, beta, model, R, noise, nu = Inf, valinit = 500)
|
n |
Number of observation |
omega |
Vector Omega |
alpha |
Vector of the diagonal of Alpha |
beta |
Vector of the diagonal of Beta |
model |
model="diagonal" if MGARCH(1,1) diagonal
|
R |
Variance of the noise (matrix) |
noise |
"normal" or "student" |
nu |
Degrees of freedom of the t-distribution, leave blank if normal-noise |
valinit |
Burn-in |
dataframe of the observations
D. Taouss & C. Francq
EbEEMGARCH
Homepage of the documentation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ####
# Sampling a diagonal model with normal noise
####
m <- 3 #Number of assets in the portfolio
Omega0 <- rep(0.01, m)
Alpha0 <- rep(0.05, m)
Beta0 <- rep(0.90, m)
R0 <- diag(rep(1, m))
Epsi <- GarchCCC.sim(2500, Omega0, Alpha0, Beta0,"diagonal", R0, "normal")
####
# Sampling a semi-d1iagonal model with student noise
####
m <- 3 #Number of assets in the portfolio
Omega0 <- rep(0.01, m)
Alpha0 <- matrix(c(1,0.5,0.5,0.5,1,0.5,0.5,0.5,1),nrow=3)
Beta0 <- rep(0.90, m)
R0 <- diag(rep(1, m))
Epsi <- GarchCCC.sim(2500, Omega0, Alpha0, Beta0,"sdiagonal", R0, "student",7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.