lagged difference terms

For questions regarding programming in the EViews programming language.

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

gauvain
Posts: 3
Joined: Mon May 10, 2010 7:59 am

lagged difference terms

Postby gauvain » Mon May 10, 2010 8:16 am

Hi,

this is part of my program to determine the optimal lag length.

Code: Select all

for !i=1 to l for !j=1 to m equation {%retail}_!i_!j.ls d({%retail}) resid_{%retail}(-1) c d(ffo(-1 to -!i)) d({%retail}(-1 to -!j)) next
Everything works fine using a model without differences. However when I try to use differences for ffo and %retail Eviews 6 tells me: "-1TO-1 is not a valid index for ffo"...

How can I use differences in this loop?

Thank you for your help!

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

Re: lagged difference terms

Postby EViews Gareth » Mon May 10, 2010 8:48 am

Unfortunately you cannot use the (-i to -j) syntax on an autoseries such as the D( ) operator. You'll have to write out the expression fully.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests