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

Re: st: geometric means


From   "Eric G. Wruck" <ewruck@econalytics.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: geometric means
Date   Wed, 4 May 2005 10:40:28 -0400

I don't believe that obtaining a geometric mean through a single egen statement is possible.  There is an <ameans> command that provides the geometric mean, among other statistics.  Perhaps that helps?

Eric



>dear all,
>is there a way to obtain geometric means when using the following command:
>
> egen mean_x=mean(x), by(time)
>
>thank you
>Mariarosaria
>


-- 

===================================================

       Eric G. Wruck
       Econalytics
       2535 Sherwood Road
       Columbus, OH  43209

       ph:      614.231.5034
       cell:    614.330.8846
       eFax:    614.573.6639
       eMail:   ewruck@econalytics.com
       website: http://www.econalytics.com

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