Statalist


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

st: RE: duplicates drop


From   "Dherani, Mukesh" <[email protected]>
To   <[email protected]>
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: [email protected] [mailto:[email protected]] On Behalf Of [email protected]
Sent: 16 July 2008 10:08
To: [email protected]
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index