Statalist


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

st: AW: RE: duplicates drop


From   <[email protected]>
To   <[email protected]>
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: [email protected]
[mailto:[email protected]] Im Auftrag von Dherani, Mukesh
Gesendet: Mittwoch, 16. Juli 2008 11:35
An: [email protected]
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: [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/


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