can't see what's wrong with this string

For questions regarding programming in the EViews programming language.

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

Qmars
Posts: 21
Joined: Thu Dec 04, 2008 10:30 pm

can't see what's wrong with this string

Postby Qmars » 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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13318
Joined: Tue Sep 16, 2008 5:38 pm

Re: can't see what's wrong with this string

Postby EViews Gareth » Fri Nov 16, 2012 8:56 am

Sounds like you don't have a series called CA_HHPC in your workfile.
Follow us on Twitter @IHSEViews

Qmars
Posts: 21
Joined: Thu Dec 04, 2008 10:30 pm

Re: can't see what's wrong with this string

Postby Qmars » Tue Nov 20, 2012 2:41 am

You're right. Thanks


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 49 guests