[R] question on prediction in coxph

From: Lisa <sangwl_at_gmail.com>
Date: Mon, 28 Apr 2008 14:40:42 -0700

Hi, thank you all for those who helped me on prediction of newdata for linear model,
 it is my new question on the prediction of coxph for newdata, for example,

i have the model:

coxout<-coxph( Surv(time, status) ~ x

predict(coxout) will give the fitted values

I have tried predict(coxout, newdata), it still gave me the fitted values only.

Can anyone hlep me on how to do prediction for coxph? thank you very much!

Lisa

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 28 Apr 2008 - 22:03:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 28 Apr 2008 - 22:30:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive