a set of steady state equations

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

a set of steady state equations

Postby ZBCPA » Wed Mar 08, 2017 11:44 am

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
ZBCPA
 
Posts: 101
Joined: Sat May 16, 2015 4:15 am

Re: a set of steady state equations

Postby jpfeifer » Thu Mar 09, 2017 11:00 am

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: a set of steady state equations

Postby ZBCPA » Tue Mar 14, 2017 5:25 am

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
Attachments
search2009.mod
(2.08 KiB) Downloaded 69 times
ZBCPA
 
Posts: 101
Joined: Sat May 16, 2015 4:15 am

Re: a set of steady state equations

Postby jpfeifer » Tue Mar 14, 2017 1:00 pm

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests