[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Centering on age for -stcox-
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/