Code error on multiple regressions program
Posted: Mon Mar 28, 2011 2:50 pm
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.
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.