Loading steady state values in version 4

Hi Michel,

In version 3 I used the following matlab code to load the steady state values from the previous run (and in this case to add another variable to the steady state file with value -50):

load Version1011;
ys_=[ys_(1:28);-50;ys_(29:end)];
steady;
check;
save Version1011 ys_;

This was a useful way to make sure steady started from good initial values.

This no longer seems to work in the new version of dynare. What is the correct way to code this now, given that the steady state values are stored in oo_.steadystate?

thanks
Magnus

Dear Magnus,

you should be able to do exactly the same thing with oo_.steadystate, except that in version 4, variables are stored in declaration order (as in VAR) and not alphabetically anymore. It is the order listed in M_.endo_names

Best

Michel

Thanks Michel,

does the code:

load_params_and_steady_state ss42809;
steady;
save_params_and_steady_state ss42809;

accomplish the same thing?

thanks
m

I don’t know
load_params_and_steady_state
and
save_params_and_steady_state

and in your first example, you were modifying the retrieved steady state …

m

The codes

load_params_and_steady_state
and
save_params_and_steady_state

are referenced in the Dynare manual 4.14.1 and 4.14.2 and it seems to improve Dynare’s ability to find a steady state.

m