Last chance! 50% off unlimited learning
Sale ends in
fevd
function from package n.ahead
steps.## S3 method for class 'nlVar':
irf(x, impulse = NULL, response = NULL, n.ahead = 10,
ortho = TRUE, cumulative = FALSE, boot = TRUE, ci = 0.95,
runs = 100, seed = NULL, ...)
VAR
VECM
TRUE
(the default) the orthogonalised impulse
response coefficients are computed (only for objects of class
varest
TRUE
the cumulated
impulse response coefficients are computed. The default value is false.TRUE
(the default) bootstrapped error
bands for the imuplse response coefficients are computed.rng
of the
bootstrap.varirf
boot = TRUE
, a list with matrices for each of
the impulse variables containing the lower bands.boot = TRUE
, a list with matrices for each of
the impulse variables containing the upper bands.TRUE
, orthogonalised impulse reponses
have been computed.TRUE
, cumulated impulse reponses
have been computed.TRUE
bootstrapped error bands have been
computed.class(x)
vec2var
irf
method is applied. For details, see the relevant package.Lütkepohl, H. (2006), New Introduction to Multiple Time Series Analysis, Springer, New York.
plot
for the plot method. lineVar
, VECM
for the models.data(barry)
## For VAR
mod_var <- lineVar(barry, lag = 2)
irf(mod_var, impulse = "dolcan", response = c("dolcan", "cpiUSA", "cpiCAN"), boot =
FALSE)
## For VECM
mod_VECM <- VECM(barry, lag = 2, estim="ML", r=2)
irf(mod_VECM, impulse = "dolcan", response = c("dolcan", "cpiUSA", "cpiCAN"), boot =
FALSE)
Run the code above in your browser using DataLab