Conditional statement to update the model

For questions regarding programming in the EViews programming language.

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

vedrank
Posts: 1
Joined: Tue Mar 12, 2013 12:18 pm

Conditional statement to update the model

Postby vedrank » Tue Mar 12, 2013 12:23 pm

I am trying to use conditional statements to update a model and bring data forward if the data is delayed.

For example, sometimes taxable sales lag behind other variables. If this is the case I want to bring it forward one month before I do the actual forecast of other variable. However, if the data is up to date, I do not want the actual data to be overwritten by a forecast. Any tips on how to do this?

Thanks for your help.

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

Re: Conditional statement to update the model

Postby EViews Gareth » Tue Mar 12, 2013 1:43 pm

I'm not entirely sure I follow what you're saying, but I think, perhaps, you're after the:

Code: Select all

model.exclude(actexist=t)
option.

From the manual:
actexist = arg
arg may be “t” (true) or “f” (false). When true, EViews will
exclude periods for all endogenous variables where values
of the actuals exist.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests