Dear Prof. Pfeifer,
I have a question on how to call the ramsey_model in a loop, so that each time the steady-state is re-computed for a new given value of the policy instrument.
In this regard, note that the SS for my model is provided within the steady_state_model block, in analytical terms as a function of the policy instrument (ie. taul).
The code I have written for this purpose looks like this:
dynare MyRamsey.mod noclearall;
if oo_.deterministic_simulation.status ~= 1
error(‘Deterministic simulations failed.’)
I was hoping that, by providing the new guess for the instrument (oo_.steady_state(11)=taulss),
and calling the command ¨steady¨ , I would have forced dynare to re-compute the ramsey steady state, before running the deterministic simulation. However this doesn´t seem to work.
In fact, while dynare is re-computing the ramsey steady state at each iteration, the value of the instrument (and, therefore, the whole steady state) is not updated.
Can you please advice on where I got it wrong?