Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[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 <georgiale@googlemail.com>
To   statalist@hsphsun2.harvard.edu
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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index