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

Re: st: maybestupid


From   chris wallace <[email protected]>
To   statalist <[email protected]>
Subject   Re: st: maybestupid
Date   02 Mar 2004 14:48:06 +0000

On Tue, 2004-03-02 at 14:44, Andreas Aschbacher wrote:
> Dear fellows !
> maybe stupid is following question :
> I want to compute the sum of one column/all column-values :
> how to write that scalar s =... contains sum  ??

qui sum var
scalar s = r(sum)

Chris.


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