irf(varobj, nsteps, A0=NULL)
szbvar
, szbsvar
or reduced.form.var
A0 = chol(varobj$mean.S)
, and the inverse of $A(0)$
for B-SVAR models, A0 = solve(varobj$A0.mode)
mhat[,,i]
are the
impulses for the i'th period for the $m$ variables.mc.irf
which calls this function
and simulates its multivariate posterior distribution.
Hamilton, James. 1994. Time Series Analysis. Chapter 11.
dfev
for the related decompositions of
the forecast error variance, mc.irf
for Bayesian and
frequentist computations of IRFs and their variances (which is what
you probably really want).data(IsraelPalestineConflict)
rf.var <- reduced.form.var(IsraelPalestineConflict, p=6)
plot(irf(rf.var, nsteps = 12))
Run the code above in your browser using DataLab