Hello folks,

 

I am wondering how to do survival analysis with time-related IVs in R. For
example,

 

> > If we have time-related variables, such as the Overall Condition of
1990, 1991 etc., how can we include these variables in coxph model? 

> > 

> > If we can not use coxph model, do we need to rearrange the dataset to
make it something like:

> >      ID time age drug censor     Year   Overall Condition 

> > 1     1    5  46    1      0     1990              XXX

> > 2     1    5  35    1      0     1991              XXX1

> > 3     1    6  35    1      1     1992              XXX2

> > 4     2    5  46    1      0     1990              XXX

> > 5     2    6  35    1      1     1991              XXX1

> > 6     3    6  35    1      1     1990              XXX2

 

And then run logistic regression using "censor" as the DV? 

 

 

 

Tianxu Chen 

101 N. 33rd Street
Academic Building, 3FL
Drexel University
Philadelphia, PA 19104
Phone: 1-215-895-2884(O)
Email: tc332@drexel.edu  

 


	[[alternative HTML version deleted]]

