String Variables commands

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

String Variables commands

Postby Qmars » Tue Mar 03, 2009 1:37 am

I have a quick question regarding the following commands :

I am trying to replace equation eql.ls GDP c GDP (-1) with %x="GDP" eql.ls {%x} c {%x} (-1)

But there is a pop up message box with "%x is not defined or is an illegal command".
As the consequence it doesn't execute the analysis. What's wrong with the string variables of %x=GDP

Thanks very much

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

Re: String Variables commands

Postby EViews Gareth » Tue Mar 03, 2009 9:19 am

try:

%x = "GDP"
equation eql.ls {%x} c {%x}(-1)
Follow us on Twitter @IHSEViews

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

Re: String Variables commands

Postby Qmars » Fri Mar 06, 2009 6:50 am

Thanks very much.
Now if I have more than one GDP i.e. AU_GDP for austria , US_GDP for the US what would be the string variable to run the same analysis for all time series.
Cheers

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

Re: String Variables commands

Postby EViews Gareth » Fri Mar 06, 2009 9:10 am

Not quite sure I follow what you want to do there. Are you attempting to do pool estimation?
Follow us on Twitter @IHSEViews

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

Re: String Variables commands

Postby Qmars » Wed Mar 18, 2009 7:53 am

Yes indeed.

I got GDD data for 20 years for a series of countries and i'd like to run ARIMA model for all of them.

Thanks

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

Re: String Variables commands

Postby Qmars » Thu Apr 30, 2009 1:04 am

Hi again

I would like to write a program to forecast the number of cars sold in 10 countries by 2015, using a multiple regression model.
The explained variable is the “cars sold” and explanatory variables are average Household disposable income, Tax on import, Highroad network in KM per head.
These variables have anID like: AU_cars, AU_HHDISP, AU_Tax, AU_HROAD for Austria and BE_cars… etc for Belgium.
The historical data for all the variables are annual and starts from 1980 till 2008.
How can I use EViews programming tool to estimate the explained variable and forecast it up to 2015 for each individual country?
Thanks very much


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 45 guests