VAR with special error structure

2 ビュー (過去 30 日間)
Max
Max 2014 年 11 月 14 日
回答済み: Roger Wohlwend 2014 年 11 月 17 日
I need to compute a vector autoregression (and graph impulse response functions) for a two series system, X and Y. The issue is the errors. The system is (roughly):
X=const1+b*X(lags)+c*Y(lags)+u1 Y=const2+d*X(lags)+e*Y(lags)+u2
We have u1=e1 and u2=f*e1+e2 where e1 and e2 are uncorrelated. So e1 and e2 are the exogenous shocks, but the system has u1 and u2.
What is the best way to go about estimating this and getting the impulse response? Can I use vgxvarx? Thanks.

回答 (1 件)

Roger Wohlwend
Roger Wohlwend 2014 年 11 月 17 日
First estimate the VAR (X,Y) with the function vgxvarx. Then estimate the parameter f with a regression. After having estimated the VAR, you know u1, so you can regress u2 on u1 (wich is identical to e1). However, for the impulse response you cannot use the Matlab function vgxproc because you don't have a standard VAR. Your VAR looks like this:
[X;Y](t+1) = [a;b] + [A,B;C,D]*[X;Y](t) + [1,0;f,1]*[e1;e2](t+1)
So you have to calculate the impulse response yourself. Set for example e1(1) = 1, e2(0) = 0, X(0) = 0 and Y(0) = 0 and compute X(1) and Y(1). Then compute u1 and u2 and extract e1 and e2. Now repeat this process again and again.

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by