Hello :
I have written the attached code:
for %i banamexa bbva_bancomera santandera banortea hsbca inbursaa scotiabanka inga bajioa interaccionesa ixea aztecaa
for !a=0 to 12 step 4
for !b=0 to 12 step 4
for !c=0 to 12 step 4
equation {%i}{!a}{!b}{!c}
{%i}{!a}{!b}{!c}.ls @qnorm({%i}) c totcred_gdp(-3*!a) vimex(-3*!b) cycle_bienes(-3*!c)
if {%i}{!a}{!b}{!c}.@coefs(3) < 0 then
delete {%i}{!a}{!b}{!c}
else
if {%i}{!a}{!b}{!c}.@ coefs(2) > 0 or {%i}{!a}{!b}{!c}.@ coefs(4)>0 then
delete {%i}{!a}{!b}{!c}
else
endif
endif
next
next
next
next
smpl @all
Basically what i would i like the code to do is to run regressions with different lags over the 12 series, and then check whether the coefficient of thevimex series is negative, if so delete the equation if not leave it alone, also if the cycle_bienes coefficient or the totcred_gdp is positive delete the equation of not leave it alone. When i run the program i get the following error:
"COEFS is not a member or procedure of BANAMEXA000 in "IF {%I}{!A}{!B}{!C}.@coefs(2)>0 or BANAMEXA000.@coefs(4)>0 then".
Problem is im just starting to program in eviews and i dont know what type of error this is and where to go fix it. Could someone what the problem is? or maybe point out what type of error this is so i can look in the correct places?
Many Thanks for your time. I very much appreciate it.
Code error on multiple regressions program
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Code error on multiple regressions program
- Attachments
-
- regressions best lags.prg
- (847 Bytes) Downloaded 198 times
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Code error on multiple regressions program
You have a space between the @ and the coefs.
Re: Code error on multiple regressions program
Exactly! Just corrected the space and it ran, and does what it has to do. Many Thanks :)
Who is online
Users browsing this forum: No registered users and 2 guests
