Looping over exogenous variables instead of over 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.

Looping over exogenous variables instead of over parameters

Postby Hugo » Tue Aug 04, 2015 4:29 pm

Dear moderators,

I find several topics on the forum where looping over parameters is discussed, using the set_param_value command in a Matlab file.

However, I see no topic where looping over the value of EXOGENOUS VARIABLES is discussed.

Any idea on how that can be done with Dynare?

Let us assume a very simple Dynare code with the following structure (only one exogenous variable called exo_var over which we want to loop):

var x y
varexo exo_var
parameters a b

model;
equations...
end;

initval;
a = ...
b = ...
exo_var = 3
end;

steady;
check;

endval;
a = ...
b = ...
exo_var = VALUES THAT WE WANT TO LOOP OVER, BETWEEN 0 and 2.5
end;

steady;
check;

simul;

Thanks a lot,

All the best to the Dynare community,

Hugo
Hugo
 
Posts: 8
Joined: Wed Jan 14, 2015 2:20 am

Re: Looping over exogenous variables instead of over paramet

Postby jpfeifer » Thu Aug 06, 2015 9:15 am

I would need to see the full mod-file.
------------
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 help

Who is online

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