VAR with special error structure

1 次查看(过去 30 天)
Max
Max 2014-11-14
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.

类别

Help CenterFile Exchange 中查找有关 Time Series 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by