Statalist


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

st: RE: a function to sum variables observation by observation


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: a function to sum variables observation by observation
Date   Tue, 26 Aug 2008 16:43:17 +0200

See -egen, rowtotal- which allows a -varlist-

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Alexander
Shevchenko
Sent: Tuesday, August 26, 2008 4:30 PM
To: [email protected]
Subject: st: a function to sum variables observation by observation

Hello
I am wondering is there a function in STATA that generates a sum of
variables observation by observation. The one that produces same as ".gen
var=var1+var2", however I need to produce a sum of a thousand variables, all
of which are called var1 - var1000. 

Any sugestions?
Thank you very much
Alex
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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