Statalist The Stata Listserver


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

st: RE: list subjects with a similar value


From   "Marino, Jennifer" <jmarino@fhcrc.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: list subjects with a similar value
Date   Wed, 22 Mar 2006 14:24:25 -0800

Maybe try something along these lines:

duplicates tag dateofbirth, gen(tag)
drop if tag==0
sort dateofbirth
by dateofbirth: list id

Jen Marino

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Raoul C
Reulen
Sent: Wednesday, March 22, 2006 2:14 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: list subjects with a similar value


Hi,
 
I have a large database and would like to list the idnumber of all
subjects with the same date of birth. How do I do this? I have tried
.duplicate, but can figure out how to do it. Thanks.
 
Raoul 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2020 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index