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
how to filtrate part of observations of panel data?
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- 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?
Code: Select all
smpl if country = "USA" or country = "UK"
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13313
- Joined: Tue Sep 16, 2008 5:38 pm
Re: how to filtrate part of observations of panel data?
If you have lots of countries you want to include you can use:
[code]
smpl if @inlist(country, “UK USA “”New Zealand”” Germany”)
[code]
smpl if @inlist(country, “UK USA “”New Zealand”” Germany”)
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 20 guests