[R] K-M probability for each subject

From: hsu ya-hui <yhsu1004_at_gmail.com>
Date: Thu, 19 May 2011 16:20:28 -0500


Dear R-user,

I would like to get the survival probability (surv) for each subject id. That is, I want to have additional column surv as follows:

id OS OS_DUR surv


eg:
fitKM<-survfit(Surv(OS_DUR,OS)~1,data=data) fitKM$surv # this will only give me survival probability and I do not know the corresponding id

Any one knows how to get the probability?

Thanks a lot,

Kate

        [[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 Thu 19 May 2011 - 22:18:25 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Thu 19 May 2011 - 23:40:08 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