Statalist


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

st: AW: RE: duplicates drop


From   <Sim.Oertel@t-online.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: RE: duplicates drop
Date   Wed, 16 Jul 2008 12:22:50 +0200

Thanks for your fast answer, 

“drop if _m!=3” works well.

Thanks
Simon



-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Dherani, Mukesh
Gesendet: Mittwoch, 16. Juli 2008 11:35
An: statalist@hsphsun2.harvard.edu
Betreff: st: RE: duplicates drop 

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/


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