Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Drop observations in panel data if equal


From   "Diana Beketova" <diana.beketova@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Drop observations in panel data if equal
Date   Sun, 5 Jun 2011 16:37:33 +0200

Dear Stata-users,

I have a very big dataset containing static corporate information for
Chinese companies (listed/delisted company, company ID, legal form,
NACE-code, SIC-code, NAICS-code) for years 2002-2011. I downloaded data for
this range of years, in order to see if some of these variables changed over
time. Now I would like to clean my dataset from the same observations.
Hence, I would like Stata to identify (this should be done simultaneously)
if, for example NACE-codes, SIC-codes or legal form of a specific Chinese
company, changed for years 2002-2011; and if not: Stata should drop the
observations for years 2002-2010 and only keep the last one for 2011. If of
course, observations changed, the whole range of years should be kept in the
dataset. 

How can I solve this problem? I would really appreciate your help! 

Best regards, 

Diana Beketova


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index