If function 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 function in Dynare

Postby aniarsh » Wed Nov 30, 2016 9:41 am

Dear all,

I am trying to incorporate different credibility indices in a small macroeconomic model. In one of those indices there is a sensitivity parameter (α) which changes asymmetrically depending on the credibility level (λ) in the previous period. Here it is assumed that there is a critical point of credibility (λ = 0.5), which is a switch point of that sensitivity variable, namely α = 0.2,if λ(-1)≥ 0.5 and α = 0.9,if λ(-1)< 0.5.

Could you please tell me whether it is possible to do this in Dynare and if yes, how?

I will appreciate any help very much.

Kind regards,
Ani
aniarsh
 
Posts: 4
Joined: Sun Nov 27, 2016 11:12 am

Re: If function in Dynare

Postby jpfeifer » Thu Dec 01, 2016 4:58 pm

That depends on the context. In perfect_foresight, you can do this. In a stochastic model, the if-clause (which is essentially a min/max operator) would introduce a non-differentiability that cannot be handled with perturbation techniques.
------------
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 5 guests