Dividing panel data

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

asdf
Posts: 3
Joined: Mon Feb 10, 2014 6:43 am

Dividing panel data

Postby asdf » Tue Feb 11, 2014 12:37 pm

Assume i have a panel dataset containing Firmid, year, CEOwage and I would like to remove the entire history of firmid's where the a wage higher than some given threshold some given year.

Example i want to remove all firms where the CEOwage is higher than 100 in year 2000.

How can I do this?

Sorry for stupid questions, I actually try though fail - though I admit I'm new to eviews.

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

Re: Dividing panel data

Postby EViews Gareth » Tue Feb 11, 2014 1:09 pm

Possibly an easier way to do it, but this works:

Code: Select all

smpl @all series inc = 1 smpl 2000 2000 if ceowage>100 inc = 0 smpl @all inc = @minsby(inc, @crossid) smpl if inc = 1


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests