Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Running Product Function


From   Yuval Arbel <[email protected]>
To   statalist <[email protected]>
Subject   st: Running Product Function
Date   Sun, 9 Dec 2012 22:53:15 +0200

Dear Statalisters,

I appreciate very much your assistance in the following question:,

I'm looking for an equivalent function for -gen y1=sum()- which will
calculate running product for each point in time

In fact, what I would like to calculate is a running geometric mean

Note also that -gen y2=prod()- does not work (i.e., stata does not
identify the function). Only -egen y2=prod()- works, but it generates
only one product for each panel, and this is not what I need.

Finally, I tried the -amean- command,, but it simply gives summary
statistics of different means, and it is not a function..
-- 
Dr. Yuval Arbel
School of Business
Carmel Academic Center
4 Shaar Palmer Street,
Haifa 33031, Israel
e-mail1: [email protected]
e-mail2: [email protected]
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index