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

Re: st: Descriptive statistics as scalars


From   "Oleg Badunenko, Netscape" <obadunenko@netscape.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Descriptive statistics as scalars
Date   Mon, 17 May 2004 20:49:01 +0200

after -regression- routine you should use -ereturn list- instead of -return list-.
oleg.

nayak@bellsouth.net wrote:


Thanks Oleg and Nick.
I was not aware of the "return list" function.
I believe that will help me to capture the regression coefficients as well.

----- Original Message ----- From: "Oleg Badunenko, Netscape" <obadunenko@netscape.net>
To: <statalist@hsphsun2.harvard.edu>
Sent: Monday, May 17, 2004 12:01 PM
Subject: Re: st: Descriptive statistics as scalars




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

oleg.


nayak@bellsouth.net wrote:



Hello all

I started using stata only about a week ago and hence pardon me for a

very


basic question.

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

How can I asssign these descriptive statistics to scalar variables?
(I can't find anything in the manual)

Thanks for the help.


--- Subh Nayak


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



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



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

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