by MichelJuillard » Sun Oct 22, 2006 8:19 pm
Hi Maurice,
I don't understand entirely what you want to do that and I didn't verify if equations (7) to (12) will work on their own. But, assuming they do
1) in Dynare version 3, you can retrieve the simulated variables in Matlab vectors with the same name as the variables
2) the exogenous shocks are in a matrix called ex_, the shocks are in the columns, in alphabetical order of their name.
3) In order to cumulate the I(1) variables from their first differences, you need Matlab code that can be put in the *.mod file after stoch_simul. But matlab doesn't know about leads and lags and you can't use syntax as c(-1).
Do for example, c1 = cumsum(dc1)+c0, where c0 is the initial value of c
Kind regards
Michel