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: Calculating proportional growth rate in stata and do-it files
From
Georgia LockwoodEstrin <[email protected]>
To
[email protected]
Subject
st: Calculating proportional growth rate in stata and do-it files
Date
Wed, 3 Oct 2012 00:08:01 +0100
Hello there,
I have been trying to calculate the proportional/relative growth rate (rate
of brain growth with age) - to do this i have:
1. logged the dependent variable (I.e. brain growth)
2. regressed against age (and another independent variable).
3. predicted yhat (predicted y values)
4. tabstat yhat, by(age) - to get the yhat values for x1 and x2 (formula
below)
4. put yhat values into the equation below to get proportional rate of
growth
% proportional growth rate = ((yhat x2 - yhat x1)/ (x2-x1)) * 100
where x2 is oldest age and x1 is youngest age
However, i am wondering if this is the most efficient way to calculate the
proportional rate of growth - as I have a lot of these rates of growth to
get through, and it seems very long way of calculating it? Perhaps it is
possible to put this all into a do -it file? in which case how to i program
stata to do the above calculated for each of my different variables?
Thanks!
Georgia
*
* 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/