Page 1 of 1

how to filtrate part of observations of panel data?

Posted: Mon Aug 17, 2020 1:37 am
by tony
Hi there,
Say I have a panel data including 100 countries and 30 years, and I want to filtrate the data some countries, for example, USA, UK, etc.
Then, how to do that?
Many thanks.

Tony

Re: how to filtrate part of observations of panel data?

Posted: Mon Aug 17, 2020 6:29 am
by startz

Code: Select all

smpl if country = "USA" or country = "UK"

Re: how to filtrate part of observations of panel data?

Posted: Mon Aug 17, 2020 7:36 am
by EViews Gareth
If you have lots of countries you want to include you can use:

Code: Select all

smpl if @inlist(country, “UK USA “”New Zealand”” Germany”)