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/