can't see what's wrong with this string
Posted: Fri Nov 16, 2012 7:11 am
Hello,
I am trying to run this program but there is a glitch in it and hope someone out there can see better than me what's wrong with this piece of program as i get a error message of : CA_HHPC is not defined in "equation EQ_CA.LS CA_HHPC C CA_GDP CA_HHs".
The program is the following:
for %c CA US BR MX
smpl 1983 2005
equation eq_{%c}.ls {%c}_hhpc c {%c}_gdp {%c}_hhs
next
for %c CA US BR MX
smpl 2006 2020
do eq_{%c}.forecast forecast_{%c}
smpl 1983 2005
series forecast_{%c}=na
next
Cheers
Qmars
I am trying to run this program but there is a glitch in it and hope someone out there can see better than me what's wrong with this piece of program as i get a error message of : CA_HHPC is not defined in "equation EQ_CA.LS CA_HHPC C CA_GDP CA_HHs".
The program is the following:
for %c CA US BR MX
smpl 1983 2005
equation eq_{%c}.ls {%c}_hhpc c {%c}_gdp {%c}_hhs
next
for %c CA US BR MX
smpl 2006 2020
do eq_{%c}.forecast forecast_{%c}
smpl 1983 2005
series forecast_{%c}=na
next
Cheers
Qmars