Statalist


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

R: st: RE: replacing after egen


From   "Carlo Lazzaro" <carlo.lazzaro@tin.it>
To   <statalist@hsphsun2.harvard.edu>
Subject   R: st: RE: replacing after egen
Date   Fri, 6 Jul 2007 09:26:43 +0200



Dear Nick,

thanks a lot for Your Kind and prompt reply.

Kind Regards,

Carlo
-----Messaggio originale-----
Da: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Per conto di n j cox
Inviato: giovedý 5 luglio 2007 18.55
A: statalist@hsphsun2.harvard.edu
Oggetto: Re: st: RE: replacing after egen

Carlo is in order. -egen, rsum()- was renamed
-egen, rowtotal()- in Stata 9. Thus Rajesh is
strictly correct only for Stata 8 and below.
In Stata 9 (and I think Stata 10) -egen, rsum()-
continues to work but is not documented.

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

Rajesh Tharyan

I believe the command you want is

egen sum=rsum(Alfa Beta)

Carlo Lazzaro

I have calculated via egen the total number of administrations of a given
drugs (Alfa=parenteral; Beta=per os).

egen Sum=rowtotal(Alfa Beta)

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



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