Page 1 of 1

If statements in Model

Posted: Tue Aug 25, 2015 2:26 am
by tvonbrasch
Hi

Im trying to convert a model from Troll into Eviews.

In the Troll model an equation looks like this:
0*R83KK+R83KK = IF (RREN83>0) THEN RREN83 ELSE 0

Some of the if statements in the Troll model are more complicated than the zero condition above.

How can one include if statements into model equations in Eviews?
Thomas

Re: If statements in Model

Posted: Tue Aug 25, 2015 2:44 am
by trubador
Try recoding:

Code: Select all

@recode(rren83>0,rren83,0)

Re: If statements in Model

Posted: Tue Aug 25, 2015 2:47 am
by tvonbrasch
thanks!
T