Selecting different panels

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

GonzaloMR
Posts: 8
Joined: Sun Feb 16, 2020 10:49 am

Selecting different panels

Postby GonzaloMR » Tue Feb 25, 2020 11:24 am

Hi all,

Apologies in advance if this has been solved already but I have not been able to find it.

I am currently working on panel data- I have 7000 observations for 12 different types of bonds. Each bond is named 1,2,3 and so on until 12.

I wanted to select panels 8, 11 and 12, but have not been able to do so. I know that with command smpl if panel=8- I can select 8, but what can i do if i want to select 3 out of the 12 panels at the same time?

Thank you very much

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

Re: Selecting different panels

Postby EViews Gareth » Tue Feb 25, 2020 11:36 am

Code: Select all

smpl if @inlist(bond, "8 11 12")
Follow us on Twitter @IHSEViews

GonzaloMR
Posts: 8
Joined: Sun Feb 16, 2020 10:49 am

Re: Selecting different panels

Postby GonzaloMR » Thu Feb 27, 2020 3:12 am

Thank you so much Gareth.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 22 guests