Wednesday, March 22, 2006

Re: st: list subjects with a similar value

there may be a more elegant way to do this, albeit this is but one attempt:

* obtain the number of duplicates w/in date of birth bysort date_of_birth: gen dob_duplicate = _N * tag each combination of DOB & the duplicates therein egen dob_tag = tag(date_of_birth dob_duplicate) * list the ID & DOB associated w/ each repeated DOB... list id date_of_birth dob_tag if dob_tag

note that i didn't subject this to a rigorous test...but i think it works, nonetheless. --clint

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

* * For searches and help try: * * *


Links to this post:

Create a Link

<< Home

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