If functions in Dynare

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.

If functions in Dynare

Postby mp_macro » Tue Apr 27, 2010 8:26 am

Hello everybody,

I am relativly new with Dynare and so I am wondering wherther it is possible to use if functions (like in matlab) in Dynare.

e.g.:

if alpah>=0.9;
beta=0.2;
else
beta=0;
end

I already checked the half forum but i could not find any subject relating to my question.
Many thanks in advance for answering my question.

With best regards,
mp_macro
mp_macro
 
Posts: 1
Joined: Mon Apr 26, 2010 4:40 pm

Re: If functions in Dynare

Postby AssiaEzzeroug » Thu Apr 29, 2010 8:51 am

Hi,

yes it is possible to include into your mod-file the following directives:
@#if
@#else
@#endif

see the Dynare macro language documentation

Best
AssiaEzzeroug
 
Posts: 83
Joined: Tue Nov 24, 2009 3:48 pm


Return to Dynare help

Who is online

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