Displaying 1 result from an estimated 1 matches for "timetodeath".
2008 Mar 28
1
Defining reference category for a cph model summary inside of a "for" loop
I have the following code.
> f <- cph(formula = Surv(TimeToDeath, Dead == "Yes")
~1,data=single.dat, x=T, y=T, surv=T)
> for(i in c('A', 'B', 'C', 'D', 'E', 'F')){
> f <-update(f,as.formula(paste('Surv(TimeToDeath, Dead ==
"Yes")~',i,sep='')))
> print(summary(f, pa...