Hi,
I'm using eviews8. I have a dated panel workfile with >500 cross sections (stocks) and 7 variables/series. I want to drop those stocks (that is the entire cross-sections) for which any of the 7 variables doesn't have at least one observation. So if for a specific stock there are all variables available except one - let's say the variable "dividend", that has only NA's - I want to completely remove this stock/cross section from the workfile. I couldn't figure out how to program this task. Thank you in advance for your help!
Contract panel workfile
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Contract panel workfile
Code: Select all
pagecontract if (@obsby(x1, @crossid)>0 and @obsby(x2,@crossid)>0 and @obsby(x3, @crossid>0) and @obsby(x4, @crossid>0) and @obsby(x5, @crossid>0) and @obsby(x6, @crossid>0) and @obsby(x7, @crossid>0))
Re: Contract panel workfile
Thank you very much, it works out smoothly!
Who is online
Users browsing this forum: No registered users and 2 guests
