Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: many-to-many merge


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: many-to-many merge
Date   Fri, 19 Aug 2005 10:59:35 -0400

check out joinby

Michael Blasnik
michael.blasnik@verizon.net


----- Original Message ----- From: "Luhang Wang" <luhang@gmail.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Friday, August 19, 2005 10:49 AM
Subject: st: many-to-many merge



Dear all,

I'm wondering whether there is some way to do a many-to-many merge in
the following sense:

eg. for some id, I have 2 observations in data set a, and 3
observations in data set b; how can I merge a and b to get a new data
set with 6 observations for this id(all the possible combinations of
the observations from a and b)?

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index