how to filtrate part of observations of panel data?

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

tony
Posts: 59
Joined: Wed Jan 07, 2009 7:59 am

how to filtrate part of observations of panel data?

Postby tony » Mon Aug 17, 2020 1:37 am

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

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

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

Postby startz » Mon Aug 17, 2020 6:29 am

Code: Select all

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

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

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

Postby EViews Gareth » Mon Aug 17, 2020 7:36 am

If you have lots of countries you want to include you can use:
[code]
smpl if @inlist(country, “UK USA “”New Zealand”” Germany”)
Follow us on Twitter @IHSEViews


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 34 guests