A question about IF

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.

A question about IF

Postby leonard007 » Sun Apr 23, 2017 10:06 am

Dear Professor jpfeifer,
I have a question about Macro-processor statement " IF". As you mentioned in this post http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=12770 , I would like to have a model where endogenously uses either one or the other equation depending on the value of the endogenouse variable in that period. You commented that this is a different issue than constructing a mod-file. But I would like to know that how we can deal with this issue?
@#if model_variable <= value
equation1
@#else
equation2
@#endif

Sincelerly,
Leo
leonard007
 
Posts: 54
Joined: Tue May 26, 2015 12:30 pm

Return to Dynare contributions and examples

Who is online

Users browsing this forum: No registered users and 3 guests