powered by
Find the long run variance of a VAR using the transition equation `A` and shocks to observations `Q`
long_run_var(A, Q, m, p)
Transition matrix from a VAR model in companion form
Covariance of shocks
Number of series in the VAR
Number of lags in the VAR
The variance matrix
# NOT RUN { long_run_var(comp_form(matrix(c(.2,.1,.1,.2,0,0,0,0), 2, 4)), matrix(c(1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0),4,4),2, 2) # }
Run the code above in your browser using DataLab