[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: speeding up program
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:owner-
> email@example.com] On Behalf Of Patricia Sourdin
> Sent: Tuesday, October 26, 2004 7:27 PM
> To: 'firstname.lastname@example.org'
> Subject: st: speeding up program
> In other words, I have monthly salary data on each individual (memid) in
> household(hhid). My data set has about 60,000 observations.
> I have written the following command to sum salary across month for each
> by hhid memid,sort: egen quart_inc=sum(salary)
> which works fine except then I have to get rid of all the duplicate totals
> created for each individual.
How about -collapse (sum) salary, by(hhid memid)-
Hope this helps,
* For searches and help try: