Displaying 1 result from an estimated 1 matches for "stanf".
Did you mean:
scanf
2009 Feb 18
1
Age as time-scale in a cox model-How to calculate x-time risk?
Dear R users,
My question is more methodology related rather than specific to R usage. Using time on study as time in a cox model, eg:
library(Design)
stanf.cph1=cph(Surv(time, status) ~ t5+id+age, data=stanford2, surv=T)
#In this case the 1000-day survival probability would be:
stanf.surv1=survest(stanf.cph1, times=1000)
#Age in this case is a covariate.
#I now want to compare the above estimate to the 1000-day survival probability I get using age...