by 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