Dynare loop for - help

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.

Dynare loop for - help

Postby skimeur » Fri Mar 06, 2015 9:11 am

Hello,

I am trying to make a simple loop over monetary policy parameters.

I replicated the Gertler & Karadi model.

Then I create a main Matlab file of the type:

param1 = 0.1;
param2 = 0.972;
for ii = 0.5:0.05:0.6
param3 = ii;
save ('my_param.mat', 'param1', 'param2', 'param3',);
clear all;
dynare my_file.mod noclearall;
end

Then in the .mod file, I declare the parameters and just after I add:
load my_param.mat;
before the command
model;

It doesn't even computethe steady state, what is wrong with my basic code?
How to do a basic for loop with Dynare?

If I make it work, how do I store all the results (parameters value and welfare calculated) to be able to compare them latter?
skimeur
 
Posts: 1
Joined: Fri Mar 06, 2015 9:02 am

Re: Dynare loop for - help

Postby joff » Fri Mar 06, 2015 9:52 am

joff
 
Posts: 21
Joined: Fri Apr 11, 2014 10:47 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 10 guests