Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Averaging and computing growth rates over sub-periods in time series


From   Marco Petracco <[email protected]>
To   [email protected]
Subject   st: Averaging and computing growth rates over sub-periods in time series
Date   Wed, 20 Dec 2006 18:21:12 +0000 (GMT)

Dear Statalisters,

I am looking for some help on the following problem: I
have a set of data in panel format covering 20 years
and I need to run a regression including averages,
growth rates (exponential) and initial values of some
of the variables over 4 years sub-periods.
In the regression I will not need the original yearly
data, just the data corresponding to the sub-periods.

I thought I could manage this using egen cut and then
some looped egen average with by: and drop/replace
commands to get the data in the format I need, but it
seems a bit long and unwieldy.

I was wondering if there was any specific user-defined
command handling this kind of problem or if there is a
quicker solution than the one I devised.

Thanks for any help,

Best regards and Season's Greetings,

Marco Petracco-Giudici
-- 
Knowledge Officer (Economics)
Department for International Development
Palace Street, London, UK

Send instant messages to your online friends http://uk.messenger.yahoo.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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index