ERRORHELP

For questions regarding programming in the EViews programming language.

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

adarshad
Posts: 101
Joined: Wed Sep 05, 2018 10:32 am

ERRORHELP

Postby adarshad » Tue Oct 30, 2018 9:38 am

The program ha been done but somehow loop works till 12 equations;;;;;
Last edited by adarshad on Tue Nov 13, 2018 9:07 am, edited 2 times in total.

EViews Matt
EViews Developer
Posts: 560
Joined: Thu Apr 25, 2013 7:48 pm

Re: ERRORHELP

Postby EViews Matt » Tue Oct 30, 2018 9:46 am

Hello,

Your program doesn't create any numbered equations objects, e.g., eq1, eq2, eq3, etc. The only equation object you create and use is named "eq".

adarshad
Posts: 101
Joined: Wed Sep 05, 2018 10:32 am

Re: ERRORHELP

Postby adarshad » Tue Oct 30, 2018 10:07 am

i changed the program but error is now
Last edited by adarshad on Tue Nov 13, 2018 9:07 am, edited 2 times in total.

adarshad
Posts: 101
Joined: Wed Sep 05, 2018 10:32 am

Re: ERRORHELP

Postby adarshad » Tue Oct 30, 2018 11:44 am

i want to choose result for this equation on the basis of best lags of x1A X1B X1D for minimum aic.is it rolling or can i do by this way;i need help;;i tried but i donot think i can do it or its not possible;i have no idea and i couldnot see anything;someone may help or give a guiding prograM.sorry for disturbance friends.

adarshad
Posts: 101
Joined: Wed Sep 05, 2018 10:32 am

Re: ERRORHELP

Postby adarshad » Mon Nov 05, 2018 12:46 pm

CAN YOU HELP ME BY ANAYWAYS ANY SUGGESTION PLZ PLZ

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: ERRORHELP

Postby startz » Mon Nov 05, 2018 1:17 pm

I believe EViews is telling you that the equation is not defined. Try putting

Code: Select all

equation eq!j
in the line before

adarshad
Posts: 101
Joined: Wed Sep 05, 2018 10:32 am

Re: ERRORHELP

Postby adarshad » Mon Nov 05, 2018 8:23 pm

it desnot work;;can someone review my program and give me correction;;;i have tried many codes including http://www.eviews.com/help/helpintro.ht ... ml%23ww830

i have contacted my supervisor ;;he tried to help but couldnot;;i am struck in my paper;;if anyone can help;;

i have been trying things whatever i can think

thanks;;;time is running out for me and i donot have any clue

adarshad
Posts: 101
Joined: Wed Sep 05, 2018 10:32 am

Re: ERRORHELP

Postby adarshad » Mon Nov 05, 2018 8:42 pm

should i do it by groups;; i want to regress y on multiple x by using aic lag selection criteria for testing for lags of all xi and choosing minimum aic equation to regress;; but for multiple x who may have multiple combinations ;;the file is attached

adarshad
Posts: 101
Joined: Wed Sep 05, 2018 10:32 am

Re: ERRORHELP

Postby adarshad » Mon Nov 05, 2018 8:59 pm

FOLLOW
Attachments
dataloop.wf1
(889.17 KiB) Downloaded 265 times
Last edited by adarshad on Tue Nov 13, 2018 9:02 am, edited 1 time in total.

EViews Matt
EViews Developer
Posts: 560
Joined: Thu Apr 25, 2013 7:48 pm

Re: ERRORHELP

Postby EViews Matt » Tue Nov 06, 2018 10:34 am

Rather than use a single loop to set the lag for all independent variables, you can use multiple loops, one per independent variable, to iterate through every possible permutation of lags. For example, the top of the loop structure could be,

Code: Select all

for !lag_a = 1 to !maxlags
   for !lag_b = 1 to !maxlags
      for !lag_d = 1 to !maxlags
         for !i=1 to 28
            equation eq{!i}.ls Y{!i} c X{!i}(-1 to -!lag_a)A X(0 to -!lag_b)B X(0 to -!lag_d)D

Regarding the error you're experiencing, take a close look at your equation statement.

adarshad
Posts: 101
Joined: Wed Sep 05, 2018 10:32 am

Re: ERRORHELP

Postby adarshad » Tue Nov 06, 2018 6:02 pm

thankyou for your help and guidance
Attachments
dataloop.wf1
(889.17 KiB) Downloaded 285 times
Last edited by adarshad on Tue Nov 13, 2018 9:01 am, edited 2 times in total.

EViews Matt
EViews Developer
Posts: 560
Joined: Thu Apr 25, 2013 7:48 pm

Re: ERRORHELP

Postby EViews Matt » Wed Nov 07, 2018 4:30 pm

Your lag specification is no longer just a single number (!j), but rather a set of numbers (!lag_a, !lag_b, etc.), so there are parts of your program you need to redesign.

  • You'll have to update how you record the best combination of lags, setting !bestlag = !i isn't going to work.
  • Since you're now performing many more regressions, you may want to rethink how you name your equation objects.
Also, after all the for loops the value of !i is 29, which is why you're receiving an error about accessing EQ29 in that first colplace command.

adarshad
Posts: 101
Joined: Wed Sep 05, 2018 10:32 am

Re: ERRORHELP

Postby adarshad » Wed Nov 07, 2018 5:52 pm

i can see it checking for all but not able to save for each loop differrently;;;; its very close yet too far
Last edited by adarshad on Tue Nov 13, 2018 9:06 am, edited 4 times in total.

adarshad
Posts: 101
Joined: Wed Sep 05, 2018 10:32 am

Re: ERRORHELP

Postby adarshad » Wed Nov 07, 2018 7:10 pm

PLEASE can you check that this program for every y from y1 to Y28 regression chooses best available lag for its xi regessors for minimum aic.is it ?

i need verification;for every y it choses bes selection of lags of all xa;;;;
Last edited by adarshad on Tue Nov 13, 2018 6:26 am, edited 3 times in total.

adarshad
Posts: 101
Joined: Wed Sep 05, 2018 10:32 am

Re: ERRORHELP

Postby adarshad » Wed Nov 07, 2018 7:13 pm

and can we do this for choosing best lags for minimum pvalue for each y.is it possible?


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 27 guests