Saving Residuals

For questions regarding programming in the EViews programming language.

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

alisabri35
Posts: 2
Joined: Tue Dec 01, 2009 9:32 pm

Saving Residuals

Postby alisabri35 » Tue Dec 01, 2009 10:18 pm

Hi guys,
I am a very new student for EViews programming. can anyone please help me to sort out this problem. (may be a simple and silly question)

I wanted save all residuals from 48 equations. I get an error message: "EQ1 is not defined" problem is is in 3rd line

for !S=1 to 48
equation eq1{!S}.ARCH(1,1) y!S c m!Sa
eq1. makeresids. Res(!S)
next

Thank you in advance

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Saving Residuals

Postby trubador » Wed Dec 02, 2009 2:22 pm

Try the following:

Code: Select all

for !S=1 to 48 equation eq{!S}.ARCH(1,1) y!S c m!Sa eq{!S}.makeresids Res!S next

alisabri35
Posts: 2
Joined: Tue Dec 01, 2009 9:32 pm

Re: Saving Residuals

Postby alisabri35 » Wed Dec 02, 2009 3:55 pm

Thank you very much trubador, it worked.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests