Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: summing the values of all observations of a variable in Stata 8.2


From   Suzy <[email protected]>
To   [email protected]
Subject   st: summing the values of all observations of a variable in Stata 8.2
Date   Fri, 10 Jun 2005 18:27:54 -0400

Hi Statamembers,

Is there an easy command to sum the values of all observations of a variable. I've searched the internet for info, but haven't found anything yet.

For example:

ID bmi
1 26
2 18
3 20

SUM bmi = 64

Thank you for the help!
Suzy
*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index