I have a panel data with annual data against some firm identifier. For some yearly observations of the firm I am missing a variable and I would like to set a sample without those firms. How can i accomplish this?
Say data is year, firmid, CEOwage and I wan't to remove the firmed's where it has an observation where CEOwage is missing.
Thanks a lot :)
Remove firms in panel data
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Remove firms in panel data
Code: Select all
smpl if ceowage<>na
Re: Remove firms in panel data
Will that not only remove the years with missing CEOwage? and leave the observation of the firm where i have it? I'm looking to remove the exclude the entire history of the firm if at least one observation is missing.
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: Remove firms in panel data
Code: Select all
smpl if @nasby(ceowage, firmid)=0Who is online
Users browsing this forum: No registered users and 2 guests
