I wonder if there is a simple way of doing this? My data is very simple, a right censored outcome (T,delta) and the predictor is simply Z*t, i.e., the cox model is like h(t)=h0(t)exp(beta*Z*t) can this be done with coxph?
David Winsemius
2012-Oct-17 00:36 UTC
[R] how to fit Cox model with time dependent covariates?
On Oct 16, 2012, at 10:24 AM, gallon li wrote:> I wonder if there is a simple way of doing this? > > My data is very simple, a right censored outcome (T,delta) and the > predictor is simply Z*t, i.e., the cox model is like > > h(t)=h0(t)exp(beta*Z*t)That looks more like an accelerated time model than a Cox model. Is this homework for a course? Why is the form of the model specified if you haven't done any investigation? -- David Winsemius, MD Alameda, CA, USA