newVARmultieventRealization {RMAWGEN} | R Documentation |
Generates several realizations of a VAR model
Description
Generates several realizations of a VAR model
Usage
newVARmultieventRealization(var, xprev = rnorm(var@VAR$K * var@VAR$p),
exogen = NULL, nrealization = 10, B = t(chol(cov(residuals(var)))),
extremes = TRUE, type = 3, noise = NULL)
Arguments
var |
A VAR model represented by a |
xprev |
previous status of the random variable |
exogen |
matrix containing the values of the "exogen" variables (predictor) for the generation |
nrealization |
number of realization (e.g. days to simulate). If |
B |
matrix of coefficients for the vector white-noise component |
extremes , type |
see |
noise |
stochastic noise to add for variabile generation. Default is |
Value
a matrix of values
Author(s)
Emanuele Cordano, Emanuele Eccel