Page 1 of 1

a set of steady state equations

PostPosted: Wed Mar 08, 2017 11:44 am
by ZBCPA
Dear Johannes,

During Bayesian estimation of a search and matching model, if I have 8 variable steady states, (some parameters in which are to be estimated),and also 8 equations to pin down all of those steady states, then generally it is very hard to have analytical solution for all the steady states using pencil and paper. Is there any code than can help to just keep them unsolved and then run estimation?


Many thanks in advance,
Huan

Re: a set of steady state equations

PostPosted: Thu Mar 09, 2017 11:00 am
by jpfeifer
Dynare by default tries to solve the resulting simultaneous equation system. The problem is that this brute force approach does not work that well for more complicated models.

Re: a set of steady state equations

PostPosted: Tue Mar 14, 2017 5:25 am
by ZBCPA
jpfeifer wrote:Dynare by default tries to solve the resulting simultaneous equation system. The problem is that this brute force approach does not work that well for more complicated models.


Many thanks Johannes.

Could I ask you further about this? I have attached the mod-file I write for replicating search and match model by Lubik(2009).

In the model part, there are 8 variable steady states (with # sign in front) to be solved and there are 8 equations to pin down those values. Those steady states equations also consist some parameters to be estimated. However, I cannot get analytical solution for these values since it is complicated.

Is there any way to solve this problem, like use fsolve or fzero in 4.4.3 or solve_algo=4 in unstable version? Could I have any example for solving steady states numerically during ESTIMATION?

Thank you very much again!

Best wishes,
Huan

Re: a set of steady state equations

PostPosted: Tue Mar 14, 2017 1:00 pm
by jpfeifer
Why are you using a linearized model when you cannot compute the steady state around which you are linearizing?

That being said, you can always use an external steady state file to call a solver, compute the steady state of the nonlinear model and assign them to respective parameters. An example for calling a solver is the
Code: Select all
NK_baseline.mod

in the Dynare examples folder.