When calculating the stochastic steady state as proposed by Johannes in another part of this forum (thanks Johannes!) I came across something which might be a bug? (or I’m overlooking something). I’m also using my .mod file for other stuff, therefore, I specifiy the approximation order in a parameter file. This worked fine up to order 2, however, no I’m encountrering the following error message:

The derivatives were not computed for the required order. Make sure that you used the right order option inside the stoch_simul command

I used the following code in my dynare file:

param_order=3;

options_.order=param_order;

options_.nograph=1;

options_.noprint=1;

if param_order == 1

options_.irf=40;

end;

if param_order == 2

options_.irf=0;

options_.nodisplay=1;

end;

if param_order == 3

options_.irf=0;

options_.k_order_solver=1;

options_.pruning=1;

end;

stoch_simul;

Obviously I can get around this problem by writing

if param_order == 3

stoch_simul(order=3);

else

stoch_simul;

end

instead of just stoch_simul, but still, it seems inconsitent, therefore, I wanted to point it out.