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

Re: st: RE: finding duplicates in two groups

From   Steven Samuels <[email protected]>
To   [email protected]
Subject   Re: st: RE: finding duplicates in two groups
Date   Fri, 15 Aug 2008 08:45:46 -0400

-cross- will give you all pairs of observations from two data sets.

On Aug 15, 2008, at 8:27 AM, Martin Weiss wrote:

Not sure what "for each.." is supposed to mean. If you want agreement in
terms of the values of one of them,

set obs 10000
g a =runiform()<0.7
g b =runiform()<0.7
g dummy=a==b
*see examples
l in 1/100

If you want to turn one variable into two along the lines of group
membership, - separate- might be handy...


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Michael McCulloch
Sent: Friday, August 15, 2008 5:58 AM
To: Statalist
Subject: st: finding duplicates in two groups

Dear Statalist members,
I have a dataset containing survival data, in which exposure groups
are A and B.

I wish to find records in group A that share the same values in group
B, for each of several fields:
date of diagnosis
date of death

I have studied the commands dups and duplicates but don't see how
they can handle finding values from two different groups sharing the
same values. I'd appreciate any suggestions or pointers.


Best wishes,
Michael McCulloch

Pine Street Foundation
124 Pine St., San Anselmo, CA 94960-2674
Tel: (415) 407-1357
Fax: (415) 485-1065
[email protected]

* For searches and help try:

* For searches and help try:
*   For searches and help try:

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