Page 1 of 1

Selecting different panels

Posted: Tue Feb 25, 2020 11:24 am
by GonzaloMR
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

Re: Selecting different panels

Posted: Tue Feb 25, 2020 11:36 am
by EViews Gareth

Code: Select all

smpl if @inlist(bond, "8 11 12")

Re: Selecting different panels

Posted: Thu Feb 27, 2020 3:12 am
by GonzaloMR
Thank you so much Gareth.