Statalist


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

st: Centering on age for -stcox-


From   Michael McCulloch <[email protected]>
To   Statalist <[email protected]>
Subject   st: Centering on age for -stcox-
Date   Fri, 26 Sep 2008 13:23:51 -0700

Hello,
In studying the manual (v9, page 147) section on the Technical Note for Example 7 of -stcox-, I read that specifying the baseline hazard option requires all variables to make sense if they would be equal to zero (which of course would not be the case with a variable such as age). That makes sense to me.

At the bottom of that page, I read that this can be resolved by subtracting mean age from each subject's age. I wish to do this within a short program. How would I write a command that subtracts the mean from age for each observation?



Michael
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* 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