Scenario exclude

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

aleksey73
Posts: 7
Joined: Fri Jun 03, 2011 8:19 am

Scenario exclude

Postby aleksey73 » Thu Jun 09, 2011 11:23 am

Hello,

I'm trying to exclude some periods of a endog variable for two reasons:
1-From @first to 1995.4 it generates log of non-positive numbers
2-As it's a annual variable, 3of the 4 trimesters has a NA

As I found, there is a possibility to call exclude in the "Scenario excludes" section. It works for both of them, but only seperately.
__alexis.exclude VAR( "IF VAR = NA")
__alexis.exclude VAR("@first 1995.4")

But, if I merge them together like __alexis.exclude VAR("@first 1995.4", "IF VAR = NA"), it doesn't work... So I would like to know if there's a way to do it or it's not possible.

Thank you!!!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: Scenario exclude

Postby EViews Gareth » Thu Jun 09, 2011 11:29 am

Try:

Code: Select all

__alexis.exclude VAR("IF VAR = NA or @date<@dateval("1995.4")")


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests