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 <>
Subject   st: -adjust- after -stcox- with time-varying covariates
Date   Sat, 21 Jan 2006 07:00:05 -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 it 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) it won't let me do it.

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



* For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index