Hi,
I have a dataset consisting of the variable px?, where ? goes across 260 countries. How do I create a pool object for those 260 countries (i do not want to manually insert the country codes).
One way of doing this is:
pagestack px?
pageunstack(page=pool) var01 id01
but, there must be a better way to do this?
Thomas
Pool object
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Pool object
Could you post the data?
-
tvonbrasch
- Posts: 569
- Joined: Fri Apr 15, 2011 5:35 am
Re: Pool object
Sure,
If I may ask another question as well. How can I create a pool object that holds only the countries where the variable px has been positive across the sample period (if @min(px?)>1) ?
Thomas
If I may ask another question as well. How can I create a pool object that holds only the countries where the variable px has been positive across the sample period (if @min(px?)>1) ?
Thomas
- Attachments
-
- creating_pool_object_wf.WF1
- (306.19 KiB) Downloaded 469 times
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Pool object
Code: Select all
%ids = @wlookup("px*", "series")
%ids = @replace(%ids, "PX", "")
pool p {%ids}
To only add some of them, you'd have to loop through, test the minimum, and only add those that passed the test.
Who is online
Users browsing this forum: No registered users and 2 guests
