Statalist


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

Re: st: RE: replacing after egen


From   n j cox <n.j.cox@durham.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: replacing after egen
Date   Thu, 05 Jul 2007 17:54:30 +0100

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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index