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
Pool Regression
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Pool Regression
Nothing looks wrong with the program. I assume some variables are missing, but hard to say without actually running it.
Re: Pool Regression
I have attached the relevant files....
Thanks for any guidance.
Zach
Thanks for any guidance.
Zach
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Pool Regression
The last cross-section included in your pool has an ID of "_". There are no corresponding series for that cross-section.
Re: Pool Regression
thanks, I wish I could have discovered that detail!
Who is online
Users browsing this forum: No registered users and 2 guests
