Re: [R] Kaplan Meier function

From: Frank E Harrell Jr <f.harrell_at_vanderbilt.edu>
Date: Thu, 14 Feb 2008 08:44:14 -0600

Matthias Gondan wrote:
> Hi Eleni, hi list,
>
> here is small sample program, the library is "survival", it is included
> in the standard R distribution.
>

>> data(colon)
>> s = survfit(Surv(time, status) ~ rx, data=colon)
>> plot(s)
>> plot(s, col=1:3)

>
> By the way: Does anyone know a neat way to indicate the number of
> patients under risk in
> the curve? Like here:

That's one of many options in the survplot function in the Design package, which uses the survival package.

Frank

>
> http://www.drugs.com/pro/images/8c3bb783-1c3c-4d75-a502-2f7ee3632f41/inspra-image02.jpg
>
> Best wishes,
>
> Matthias
>
> Eleni Christodoulou schrieb:

>> Hi all,
>>
>> I am trying to draw a Kaplan-Meier curve and I found online that Kaplan -
>> Meier estimates are computed with a function called km in the event package.
>> Is there an update for that because when I choose to download packages in
>> R,. there is no package called event, even though I have selected all the
>> repositories.
>>
>> Thanks in advance,
>> Eleni
>>
>> 	[[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.
>>
>>

>
> ______________________________________________
> 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.
>
-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University

______________________________________________
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 14 Feb 2008 - 14:56:22 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 Thu 14 Feb 2008 - 15:30:14 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