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

RE: st: Descriptive statistics as scalars


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Descriptive statistics as scalars
Date   Mon, 17 May 2004 17:19:16 +0100

. summ x 

Nick 
n.j.cox@durham.ac.uk 

Oleg Badunenko
 
> this might help:
> 
> . summ x(t)
> . scalar mean_xt = r(mean)
> . scalar std_xt = r(sd)
> . scalar count_ = r(N)
> 
> for other possibilities look at "return list" after "summ" routine
 
nayak@bellsouth.net wrote:
 
> >I have a variable x(t)
> >
> >I want the following scalars for further analysis etc.
> >mx = mean(x(t))
> >sx = stdev(x(t))
> >nx = count(x(t))
> >

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