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

st: geometric mean with foreach


From   "U.A.QU.AP" <[email protected]>
To   [email protected]
Subject   st: geometric mean with foreach
Date   Mon, 12 Dec 2005 21:52:04 +0100 (CET)

Hello
I have monthly price data in the follwing form

		p801	p802............p036

good1 	        100	100.3...........
good2	        100 	100.5...........
.
.
goodn	       100	100.6..........

p801 denotes price at january 1980
I want to construct a geometric mean of monthly prices for 
each possible year
say price index for year going from january 80 to december 80 
and feb 80 to january 81
.... to may 2002 to june 2003
any help
AbdelRahmen


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