Statalist The Stata Listserver


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

st: -adjust- after -stcox- with time-varying covariates


From   Allan Garland <agar5858@cox.net>
To   statalist@hsphsun2.harvard.edu
Subject   st: -adjust- after -stcox- with time-varying covariates
Date   Sat, 21 Jan 2006 07:11:33 -0500

I am estimating a Cox model that includes several variables both alone and as time-dependent covariates (interaction terms with time), e.g:

stcox age  race  elixS1  elixS2  admsS1  admsS2, tvc(age admsS1 admsS2) texp(ln(_t))

and I want to use -adjust-.  But, since the Hazard for age, admsS1 and  admsS2 are now time-dependent, I'll need to look at the Hazard for several  different values of time (or ln(_t) actually), but I cannot figure out from the manual how to do this.  When I put a value of _t or ln(_t) into the syntax of -adjust- (just as I would to set the value of any other variable in a model before using adjust) I get an error message.

So, my question is, can I do this, and if so how?

Thanks.

Allan



*
*   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–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index