Displaying 1 result from an estimated 1 matches for "timesincerx".
Did you mean:
  timesince
  
2006 Feb 26
0
frailty in coxph or repeated measures in cph (Design)
...t;- c(1,2,3,1,2,3) # number of each rise per patient
clinfail <- c(1,1,1,0,0,0) # censored indicator of clinical failure status (the endpoint) 
clinfailtime <- c(5,4,3,10,9,8) # time from rise to clinical failure endpoint
riseval <- c(10,20,30,1,2,3) # value of test at the time of rise
timesinceRx <- c(1,2,3,1,2,3) # years since treatment
Rxtype <- c(c,c,c,d,d,d) # type of treatment
...plus other variables at time of rise plus pre-treatment variables
 
In generic terms, analysis would be:
fit <- cph(Surv(clinfailtime, clinfail) ~ riseval +Rxtype...)
nomogram(fit)
 
I could e...