Use 'if conditional' within model section

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.

Use 'if conditional' within model section

Postby mcastillo » Wed Sep 28, 2011 8:13 pm

Hello, I am a beginner user but I am getting acquainted of dynare since 3 months. I am handling a DSGE model and I am getting results by using different combinations of parameters, eta and sigma...so, that's not a problem because i made a loop to catch everything what i need for that bunch of combinations. but i realized that when eta and sig are equal to 1 my model is diferent than when they are not equal...so i am wondering how i may perform a conditional statement, in order to estimate the model for all combinations at the same time...and don't have the need to estimate apart by sub-combination of parameters. I hope I have been able to make me understand, and in advance thanks a lot.

Marola
mcastillo
 
Posts: 5
Joined: Wed Sep 28, 2011 8:01 pm

Re: Use 'if conditional' within model section

Postby SébastienVillemot » Wed Oct 12, 2011 4:53 pm

What you need to use for your purpose is the macro-processor. Have a look at the "macroprocessor.pdf" file that comes with Dynare distribution, or alternatively to the section of the reference manual dedicated to this topic.
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: No registered users and 13 guests