Statalist The Stata Listserver


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

Re: st: sum question


From   Patricia Vera Rojas <pverarojas@yahoo.es>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: sum question
Date   Tue, 13 Jun 2006 17:19:22 +0200 (CEST)

It works, thanks a lot to all you,

Patricia

 --- Richard Goldstein <richgold@ix.netcom.com> escribió:

> try the following:
> 
> egen tot_inc=total(Income), by(ID)
> 
> Rich
> 
> Patricia Vera Rojas wrote:
> > Hi everyone,
> > 
> > I have:
> > 
> > ID  Income
> > x     15
> > x     20
> > x      5
> > xx     15
> > xx     10
> > xx     10
> > xx     10
> > 
> > I want to get:
> > 
> > ID  Tot-Inc
> > x     40
> > x     40
> > x     40
> > xx    45
> > xx    45
> > xx    45
> > xx    45
> > 
> > 
> > How can I do it?
> > 
> > Thanks a lot,
> > 
> > Patricia
> 
> *
> *   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/
> 


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.es 
*
*   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