loop to compute and display the values of the objective func

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 to compute and display the values of the objective func

Postby nk178 » Wed Aug 26, 2015 6:12 pm

Hi all,

I understand how we can use the macro-processor in mod files/or matlab files in order to add loops for several parameter values. However, I have noticed that for optimal policy problems, the result for the value of the objective function displayed is the one for the last value that the parameter (that we use the loop) takes.

Is any example available for adding loops to compute and display all the values of the objective function for several parameter immediately?


Best,
nk178
 
Posts: 32
Joined: Sat May 24, 2014 1:05 pm

Re: loop to compute and display the values of the objective

Postby jpfeifer » Mon Aug 31, 2015 8:45 am

The answer depends on the type of optimal policy exercise you are trying to conduct. For discretionary_policy, you simply need to loop over stoch_simul.
------------
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 contributions and examples

Who is online

Users browsing this forum: No registered users and 1 guest