Generates a new realization of a VAR model
NewVAReventRealization(var, xprev, noise, exogen = NULL, B = NULL)
var
: A VAR model represented by a varest
object as returned by getVARmodel
or VAR
xprev
: previous status of the random variablenoise
: uncorrelated or white noise (residual). Default is rnorm(length(xprev))
(or rnorm(ncol(B)
)exogen
: vector containing the values of the "exogen" variables (predictor) for the generationB
: matrix of coefficients for the vectorial white-noise componenta vector of values
forecastEV
,forecastResidual
Emanuele Cordano, Emanuele Eccel
Useful links