VAR with special error structure
2 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Time Series についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!