Page 1 of 1

Loading steady state values in version 4

PostPosted: Wed Apr 29, 2009 10:37 pm
by andecoms
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

Re: Loading steady state values in version 4

PostPosted: Thu Apr 30, 2009 8:12 pm
by MichelJuillard
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

Re: Loading steady state values in version 4

PostPosted: Mon May 04, 2009 9:46 pm
by andecoms
Thanks Michel,

does the code:

load_params_and_steady_state ss42809;
steady;
save_params_and_steady_state ss42809;

accomplish the same thing?

thanks
m

Re: Loading steady state values in version 4

PostPosted: Tue May 05, 2009 8:13 am
by MichelJuillard
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

Re: Loading steady state values in version 4

PostPosted: Tue May 05, 2009 1:49 pm
by andecoms
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