[R] Kaplan Meier function

Dieter Menne dieter.menne at menne-biomed.de
Thu Feb 14 15:09:20 CET 2008


Eleni Christodoulou <elenichri <at> gmail.com> writes:

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

The standard survival package is package survival. Try survfit, plot.survfit,
and summary(survfit). There are some fancy extension in package Design, but
better start with survival, Design-based KM have huge options list that can be
confusing at first.

Dieter



More information about the R-help mailing list