Statalist The Stata Listserver

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

st: RE: RE: list subjects with a similar value

From   "Nick Cox" <>
To   <>
Subject   st: RE: RE: list subjects with a similar value
Date   Wed, 22 Mar 2006 22:32:15 -0000

Whoa! The question was just about _listing_. 
You just changed Raoul's dataset by throwing 
much of it away. 

duplicates tag dateofbirth, gen(tag)
sort dateofbirth
list id dateofbirth if tag 


Marino, Jennifer
> Maybe try something along these lines:
> duplicates tag dateofbirth, gen(tag)
> drop if tag==0
> sort dateofbirth
> by dateofbirth: list id

Raoul C Reulen
> 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.

*   For searches and help try:

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