Borrar filtros
Borrar filtros

VAR with special error structure

1 visualización (últimos 30 días)
Max
Max el 14 de Nov. de 2014
Respondida: Roger Wohlwend el 17 de Nov. de 2014
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.

Respuestas (1)

Roger Wohlwend
Roger Wohlwend el 17 de Nov. de 2014
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.

Categorías

Más información sobre Time Series en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by