Re: [R] K-M probability for each subject

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Thu, 19 May 2011 19:06:19 -0400

On May 19, 2011, at 5:20 PM, hsu ya-hui wrote:

> 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:

The survival probability for each subject is 1 until death and 0 thereafter.

>
> 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?

What do you really want?

-- 
David Winsemius, MD
West Hartford, CT

______________________________________________
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 - 23:16:20 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 Fri 20 May 2011 - 00:10: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