mtvgarchSim {tvgarch} | R Documentation |
Simulate from a multivariate TV-GARCH-X model
Description
Simulate from a multivariate multiplicative TV(s)-GARCH(p,q,r)-X model.
Usage
mtvgarchSim(n, m = 2, order.g = c(1,1), order.h = c(1,1,0, 1,1,0),
order.x = NULL, intercept.g = c(1.2,1), size = c(3,5), speed = c(10,25),
location = c(0.5,0.8), intercept.h = c(0.2,0.3), arch = c(0.10,0.05),
garch = c(0.80,0.90), asym = NULL, xtv = NULL, xreg = NULL, par.xreg = NULL,
R = c(1,0.6,0.6,1), dcc = FALSE, par.dcc = NULL, opt = 0, as.zoo = TRUE,
verbose = FALSE, innovations = NULL)
Arguments
n |
integer. |
m |
integer indicating the dimenson of the multivariate series. |
order.g |
integer matrix with each row indicating the number of locations in each transition function of the TV components; m rows and max.s columns. |
order.h |
integer matrix with each row indicating the |
order.x |
|
intercept.g |
|
size |
|
speed |
|
location |
|
intercept.h |
numeric matrix. |
arch |
|
garch |
|
asym |
|
xtv |
|
xreg |
numeric vector, matrix, time series or zoo object to include as covariates in the GARCH-X component. |
par.xreg |
|
R |
matrix of (constant) conditional correlations. |
dcc |
logical. If |
par.dcc |
numeric vector containing the ARCH- and GARCH-type coefficients in the dynamic conditional correlations. |
opt |
integer indicating whether the speed parameter in the TV component should be scaled. If 0, no scaling; if 1, speed/sd(xtv); if 2, exp(speed). Only relevant for TV-GARCH models. |
as.zoo |
logical. If |
verbose |
logical, if |
innovations |
|
Value
An object of class 'zoo' (if as.zoo = TRUE
), otherwise a matrix or a list
(if verbose = TRUE
), with the simulated values.
Author(s)
Susana Campos-Martins
See Also
mtvgarch
,
tvgarch
,
garchx
,
zoo
Examples
set.seed(12345)
## Simulate from a bivariate CCC-TV(1)-GARCH(1,1) model (default):
mySim1 <- mtvgarchSim(n = 1500)
## Simulate from a bivariate CCC-TV(1)-GARCH(1,1)-X model
## (with volatility spillovers)
mySim2 <- mtvgarchSim(n = 1500, order.x = c(0,1,1,0), par.xreg =
c(0.03,0.04))