Page 1 of 1

Dynare loop for - help

PostPosted: Fri Mar 06, 2015 9:11 am
by skimeur
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?

Re: Dynare loop for - help

PostPosted: Fri Mar 06, 2015 9:52 am
by joff