|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: computing growth rates by country
From
[email protected]
To
[email protected]
Subject
Re: st: computing growth rates by country
Date
Wed, 17 May 2006 08:32:40 +0200
Sumiter,
I think you can solve your problem by simply typing:
gen lngdp=ln(gdp)
sort Country Year
by Country: gen lngrowth = lngdp-lngdp[_n-1]
by Country: egen avg_lngrowth = mean(lngrowth)
Best,
Daniel
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
*
* 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 |