IF functions in economic models
Posted: Fri Jun 10, 2016 8:48 am
Easy question for you Eviews geniuses.
Let's say the the central bank is more responsive when the output gap is wide.
I'd love to code that up in my small model using an IF function but I've no idea of the right syntax - searching for if in the forum naturally returns rather a lot of articles.
Basically something like:
IF y<-2, i = 4 + 1.5*y + 1.5*inf
ELSE i = 4 + 0.5*y + 1.5*inf
Where i is the policy rate, y is the output gap and inf is the deviation of inflation from target.
A quick pointer would be much appreciated.
Best,
Jamie
Let's say the the central bank is more responsive when the output gap is wide.
I'd love to code that up in my small model using an IF function but I've no idea of the right syntax - searching for if in the forum naturally returns rather a lot of articles.
Basically something like:
IF y<-2, i = 4 + 1.5*y + 1.5*inf
ELSE i = 4 + 0.5*y + 1.5*inf
Where i is the policy rate, y is the output gap and inf is the deviation of inflation from target.
A quick pointer would be much appreciated.
Best,
Jamie