Re: [R] Kaplan-Meier function from survfit

2008-12-05 Thread Marc Schwartz
on 12/05/2008 09:10 PM Ritwik Sinha wrote: > Hi All, > > Please pardon me if I am missing something obvious here. How do I get > the Kaplan-Meier estimate function that is created by survfit and > plotted by the code. > > fit <- survfit(Surv(time, status) , data=aml) > plot(fit) > > That is, I n

[R] Kaplan-Meier function from survfit

2008-12-05 Thread Ritwik Sinha
Hi All, Please pardon me if I am missing something obvious here. How do I get the Kaplan-Meier estimate function that is created by survfit and plotted by the code. fit <- survfit(Surv(time, status) , data=aml) plot(fit) That is, I need a function that will give me the survival estimate at a giv

Re: [R] Kaplan Meier function

2008-02-14 Thread Frank E Harrell Jr
Matthias Gondan wrote: > Frank E Harrell Jr schrieb: >> Matthias Gondan wrote: 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? >>

Re: [R] Kaplan Meier function

2008-02-14 Thread Matthias Gondan
Frank E Harrell Jr schrieb: > Matthias Gondan wrote: >>> 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? > That's one of many options in

Re: [R] Kaplan Meier function

2008-02-14 Thread Frank E Harrell Jr
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 wa

Re: [R] Kaplan Meier function

2008-02-14 Thread Matthias Gondan
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 unde

Re: [R] Kaplan Meier function

2008-02-14 Thread Eleni Christodoulou
dent.kuleuven.be/%7Em0390867/dimitris.htm> > > > - Original Message - > From: "Eleni Christodoulou" <[EMAIL PROTECTED]> > To: > Sent: Thursday, February 14, 2008 2:50 PM > Subject: [R] Kaplan Meier function > > > > Hi all, > > > >

Re: [R] Kaplan Meier function

2008-02-14 Thread Dimitris Rizopoulos
/biostat/ http://www.student.kuleuven.be/~m0390867/dimitris.htm - Original Message - From: "Eleni Christodoulou" <[EMAIL PROTECTED]> To: Sent: Thursday, February 14, 2008 2:50 PM Subject: [R] Kaplan Meier function > Hi all, > > I am trying to draw a Kapla

Re: [R] Kaplan Meier function

2008-02-14 Thread Dieter Menne
Eleni Christodoulou 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 c

Re: [R] Kaplan Meier function

2008-02-14 Thread Kevin E. Thorpe
See the survfit() in the survival package which is one on the recommended packages that should (I think) have come with R. Eleni Christodoulou wrote: > 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

[R] Kaplan Meier function

2008-02-14 Thread Eleni Christodoulou
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