Calibration with Dynare

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.

Calibration with Dynare

Postby blackoutz » Fri Jan 01, 2016 10:01 pm

Hi I am learning dynare so this may seem to be a stupid question... but is there any example about how to calibrating a model with dynare? I couldn't find such on the internet
I am now using fminsearch so each iteration dynare will recalculate everything and generate simulated moments, but this is horribly slow;
also, what's the best way to feed parameters to dynare? E.g. in my main .m file, I specify the parameters I will be using and then call dynare. I am trying to use global, but dynare can't seem to read global parameters.
blackoutz
 
Posts: 7
Joined: Sun Oct 18, 2015 12:48 am

Re: Calibration with Dynare

Postby jpfeifer » Sat Jan 02, 2016 7:22 am

For looping over parameters, see http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=4891
Regarding calibration: what exactly do you mean?
------------
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: Calibration with Dynare

Postby blackoutz » Sun Jan 03, 2016 6:47 am

I mean exactly how do you calibrate a model with matlab and dynare?

What's I'm trying to do is making a function, the input is the parameter values and then the function will call for dynare and simulate business cycle moments and the outputs are the moments that are used for calibration. And then I'll try to minimize the distance between the simulated moments with data moments by trying different parameter values by hand.

I'm studying on my own so I'm not sure this is the right way to do calibration. I'm trying to use fminsearch function to minimize the distance. But it's too slow.

Can you suggest some examples on how to calibrate a model? Thanks!
blackoutz
 
Posts: 7
Joined: Sun Oct 18, 2015 12:48 am

Re: Calibration with Dynare

Postby blackoutz » Wed Jan 06, 2016 6:47 am

I figured it out... Use set param value and resol. Thanks!
blackoutz
 
Posts: 7
Joined: Sun Oct 18, 2015 12:48 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests