Pool Regression

For questions regarding programming in the EViews programming language.

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

zsears
Posts: 9
Joined: Wed Jan 30, 2013 12:22 pm

Pool Regression

Postby zsears » Wed Jan 30, 2013 12:27 pm

Hi, I am hoping to get a some help with syntax. I am unsure why my program is not working as I would like.
Below is the program, and of course I have the file path where I have noted location. The problem comes when I get to my step 3. I get an undefined variable error.

Can you spot anything right away or do you need more info?

Many thanks for any help.

Best,

Zach Sears

______________________

mode quiet

'Step1. Open and structure the data file CE_data

wfopen "location"

pageselect data
pagestruct country @date(year)
pageunstack(namepat="*_?", page=unstacked) country @date @ *

'Step 2. Create a pool called geo, kept in another program file, pool appears to be created successfully

pageselect unstacked
include "location"

'Step 3. Preliminary calculations
'THIS is the problem - it does not recognize the variables in the pool

'total retail spending per person per day, nominal and real
geo.genr retppd_?=(retexp_?/nights_?)/arr_?
geo.genr realretppd_?=retppd_?/(cpi_gbr/100)

stop

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

Re: Pool Regression

Postby EViews Gareth » Wed Jan 30, 2013 12:32 pm

Nothing looks wrong with the program. I assume some variables are missing, but hard to say without actually running it.

zsears
Posts: 9
Joined: Wed Jan 30, 2013 12:22 pm

Re: Pool Regression

Postby zsears » Wed Jan 30, 2013 12:51 pm

I have attached the relevant files....

Thanks for any guidance.
pool_geo_list.prg
(368 Bytes) Downloaded 510 times
program1.prg
(1.02 KiB) Downloaded 489 times
ce_data.wf1
(294.32 KiB) Downloaded 407 times
Zach

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

Re: Pool Regression

Postby EViews Gareth » Wed Jan 30, 2013 1:33 pm

The last cross-section included in your pool has an ID of "_". There are no corresponding series for that cross-section.

zsears
Posts: 9
Joined: Wed Jan 30, 2013 12:22 pm

Re: Pool Regression

Postby zsears » Wed Jan 30, 2013 1:54 pm

thanks, I wish I could have discovered that detail!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest