Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Merging observations


From   "Jim O'Grady" <jimogr@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Merging observations
Date   Thu, 11 Dec 2008 07:57:10 +0000

Hi Folks,

I'm hoping this is a simple question :)

I have a dataset like this:

Case Person var1 var2 var3
345   01         1     .      .
345   01         .      1     .
345   02         .      1     .
345   02         .      .      1

I want to merge the observations which have the same identifiers (case
and person) to get

Case Person var1 var2 var3
345   01         1     1      .
345   02         .      1     1

All help appreciated,

Thanks,

Jim
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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