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

From |
"Martin Weiss" <martin.weiss@uni-tuebingen.de> |

To |
<statalist@hsphsun2.harvard.edu> |

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: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Alexander Shevchenko Sent: Tuesday, August 26, 2008 4:30 PM To: statalist@hsphsun2.harvard.edu 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/

**References**:**st: a function to sum variables observation by observation***From:*Alexander Shevchenko <xanderx@mail.ru>

- Prev by Date:
**Re: st: RE: RE: sorting a variable list within each obs.(row)** - Next by Date:
**st: RE: JSM 2008, Denver** - Previous by thread:
**st: a function to sum variables observation by observation** - Next by thread:
**Re: st: RE: RE: sorting a variable list within each obs.(row)** - Index(es):

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