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

st: RE: changing format and summing data


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: changing format and summing data
Date   Mon, 20 Jun 2005 12:25:57 +0100

egen, sum()

Nick 
n.j.cox@durham.ac.uk 

Angela James

> I am a novice stata user.  I have a data set which I transferred from
> excel.  I am working with employment and earnings data from an
> organization.  The data is currently stacked--with different quarters
> on top of each other.
> Each individual has a unique identification number--however, 
> in a given
> quarter not all ids will have reported earnings.  Further, within
> quarters certain ids may have more than one record (or line) of
> earnings.
> My basic question is:
> How do I total earnings by unique ID(individual), given this data
> arrangement?

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