create string variable with cross section identifiers

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

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

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

create string variable with cross section identifiers

Postby tvonbrasch » Tue May 18, 2021 12:18 am

Hi

How can I efficiently, and without the creation of another workpage, create a string variable with cross section identifiers from a panel workpage?

The following code works:

Code: Select all

   
   pageunstack(page=aux) id id01 @ k
   %idseries= id.@crossids
   pagedelete aux   
   string idseries=%idseries


but I have to create and delete an auxiliary workpage ...
t

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

Re: create string variable with cross section identifiers

Postby EViews Gareth » Tue May 18, 2021 8:21 am

Code: Select all

%idseries = @wjoin(@uniquevals(id))
Follow us on Twitter @IHSEViews

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

Re: create string variable with cross section identifiers

Postby tvonbrasch » Tue May 18, 2021 1:01 pm

Great, thanks!
t


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 11 guests