Displaying 1 result from an estimated 1 matches for "actualdur".
2005 Jan 27
0
Output predictions based on a Cox model
Hi,
I've generated a cox model, but I'm struggling to work out how to output
predctions based on the model I've made.
my.model<-coxph(Surv(duration,status) ~ gender + var1 + var2,
data=mydata)
My test data set looks something like this:
id,actualduration,gender,var1,var2
a,65,m,1,3
b,34,f,1,5
...
What i need to do is for each id, output a predicted duration based on
my cox model so that I can compare it with other models.
I've looked in the survival package, and the Design package, but I can
only see how to output survival probabilities....