Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: duplicates drop


From   "Dherani, Mukesh" <M.K.Dherani@liverpool.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: duplicates drop
Date   Wed, 16 Jul 2008 10:34:59 +0100

You may use:
drop if _m!=3
this will drop records both from 'master' as well as 'using' dataset which are not uniquely identified. 
However, be warned of using -drop- command, you may lose some vital info..



BW,m

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Sim.Oertel@t-online.de
Sent: 16 July 2008 10:08
To: statalist@hsphsun2.harvard.edu
Subject: st: duplicates drop 

Dear all,

I merged two dataset for a pre-study. In this study, I can not uniquely
identify some cases since I do not have access to all variables. 
 
How can I drop all cases which have duplicates? I know about the command
"duplicates drop". However I would like to drop all cases which are not
unique, not only the duplicates. 

Thanks for your help
Simon


*
*   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/

*
*   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   |   What's new   |   Site index