Pool object

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

tvonbrasch
Posts: 569
Joined: Fri Apr 15, 2011 5:35 am

Pool object

Postby tvonbrasch » Wed Jun 05, 2013 5:39 am

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

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

Re: Pool object

Postby EViews Gareth » Wed Jun 05, 2013 7:59 am

Could you post the data?

tvonbrasch
Posts: 569
Joined: Fri Apr 15, 2011 5:35 am

Re: Pool object

Postby tvonbrasch » Wed Jun 05, 2013 10:12 am

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
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

Postby EViews Gareth » Wed Jun 05, 2013 10:27 am

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.

tvonbrasch
Posts: 569
Joined: Fri Apr 15, 2011 5:35 am

Re: Pool object

Postby tvonbrasch » Wed Jun 05, 2013 10:44 am

perfect, thanks
t


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests