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: [email protected]
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/