Wednesday, March 22, 2006

st: RE: list subjects with a similar value

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/


Tag:


Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?