I am using a log-linearized model, but for some cases I need to calculate the steady state values, for which non-linear equations should be solved, for instance, something like this for n_ss:
How should I proceed (I was thinking to write this in the parameters block, but system of nonlinear equations should be solved)?
Thank you in advance.
Please have a look at example3.mod in Dynare’s example folder. There a steady state model-block is used to call a solver.
Thank you for the reply. I actually did it, but got an error:
??? Error using ==> print_info at 80
The steady state contains NaN or Inf
Could you please have a look at the attached files to advise what might be wrong there?
In the log-linearized version of model steady state values for some variables appear, this is why I need to calculate them (for which non-linear equation should be solved).
Thanks in advance.
cc_steady_state_helper.m (270 Bytes)
cc.mod (1.54 KB)
To correctly handle parameter dependence, you need to move the recursive parameter definitions that depend on n_ss into the steady_state_model-block:
Otherwise, when you define e.g. mc_ss to depend on n_ss, that n_ss has not yet been computed.
It works. Thanks for your valuable help!