Page 1 of 4
ERRORHELP
Posted: Tue Oct 30, 2018 9:38 am
by adarshad
The program ha been done but somehow loop works till 12 equations;;;;;
Re: ERRORHELP
Posted: Tue Oct 30, 2018 9:46 am
by EViews Matt
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".
Re: ERRORHELP
Posted: Tue Oct 30, 2018 10:07 am
by adarshad
i changed the program but error is now
Re: ERRORHELP
Posted: Tue Oct 30, 2018 11:44 am
by adarshad
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.
Re: ERRORHELP
Posted: Mon Nov 05, 2018 12:46 pm
by adarshad
CAN YOU HELP ME BY ANAYWAYS ANY SUGGESTION PLZ PLZ
Re: ERRORHELP
Posted: Mon Nov 05, 2018 1:17 pm
by startz
I believe EViews is telling you that the equation is not defined. Try putting
in the line before
Re: ERRORHELP
Posted: Mon Nov 05, 2018 8:23 pm
by adarshad
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
Re: ERRORHELP
Posted: Mon Nov 05, 2018 8:42 pm
by adarshad
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
Re: ERRORHELP
Posted: Mon Nov 05, 2018 8:59 pm
by adarshad
FOLLOW
Re: ERRORHELP
Posted: Tue Nov 06, 2018 10:34 am
by EViews Matt
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.
Re: ERRORHELP
Posted: Tue Nov 06, 2018 6:02 pm
by adarshad
thankyou for your help and guidance
Re: ERRORHELP
Posted: Wed Nov 07, 2018 4:30 pm
by EViews Matt
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.
Re: ERRORHELP
Posted: Wed Nov 07, 2018 5:52 pm
by adarshad
i can see it checking for all but not able to save for each loop differrently;;;; its very close yet too far
Re: ERRORHELP
Posted: Wed Nov 07, 2018 7:10 pm
by adarshad
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;;;;
Re: ERRORHELP
Posted: Wed Nov 07, 2018 7:13 pm
by adarshad
and can we do this for choosing best lags for minimum pvalue for each y.is it possible?