loop over 3 parameters

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.

loop over 3 parameters

Postby Glm » Mon Jan 14, 2013 12:52 pm

In a generic mod file I have 3 parameters and I wanna try 5 different values for each one of the parameters (this gives totally 5^3=125 combinations) and save the simulation results so that I easily can get access to them and make Matlab chose the parameter combination that minimizes some target that I have.

What's the most efficient way to do this in Dynare?
Glm
 
Posts: 47
Joined: Tue Jan 17, 2012 12:54 pm

Re: loop over 3 parameters

Postby SébastienVillemot » Tue Jan 15, 2013 11:22 am

Indeed run Dynare from a loop. You might want to use the "noclearall" option of Dynare so that your enclosing variables are not cleared at every run.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests