Matrix decomposition

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Matrix decomposition

Postby maile » Tue May 22, 2007 11:43 am

Dear All
I am trying to figure out how I can decompose the dr_.ghx and dr_.ghu into A, B and C matrices if they are coefficient matrices of the system: y(t)=A*x(t); x(t)=B*x(t-1) + C*u(t). But I can't understand. Does anyone has an idea?

Thanks
Mai
maile
 
Posts: 4
Joined: Mon Apr 18, 2005 12:25 pm

Postby MichelJuillard » Tue May 22, 2007 1:22 pm

For a model with only one lag and in version 4

[quote]
nstatic = oo_.dr.nstatic
npred = oo_.dr.npred
B = oo_.dr.ghx(nstatic+(1:npred),:)
D = oo_.dr.ghu(nstatic+(1:npred),:)
A =dr_.ghx*inv(B)
[quote]
where y is the original vector of all the variables in the model and x(t) is the vector of state (predetermined) variables. Look at the reference manuel for the ordering of the rows of oo_.dr.ghx and oo_.dr.ghu

This conversion won't work if there exist linear combinations among state variables.

In version 3, oo_.dr is dr_

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests