Statalist


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

st: re: average rate of growth


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: re: average rate of growth
Date   Sun, 11 Nov 2007 11:11:39 -0500

Daniele wrote

Dear all, I need to compute the "average rate of growth of variable - y-, over the previous three years".
Could somebody help me with the command?

webuse grunfeld, clear
g linvest = log(invest)
g growth = D.linvest
mvsumm growth, gen(grate) stat(mean) window(3) end
l year invest linvest D.linvest grate if company==1
tsline grate if company==1, yline(0)

Kit

Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html


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