Re: [R] survfit question - Q1 and Q3 survival time?

2014-03-20 Thread Lucy Leigh
Excellent! Thank you for your help. -Original Message- From: Therneau, Terry M., Ph.D. [mailto:thern...@mayo.edu] Sent: Monday, 17 March 2014 11:15 PM To: Lucy Leigh; r-help@R-project.org Cc: David Winsemius Subject: Re: survfit question - Q1 and Q3 survival time? Try

Re: [R] survfit question - Q1 and Q3 survival time?

2014-03-17 Thread Therneau, Terry M., Ph.D.
Try help(quantile.survfit) Terry Therneau --- begin included message --- Hello, I am using the function survfit in the 'survival' package. Calling the function produces the median survival time automatically, as below. sleepfit - survfit(Surv(timeb, death)~1) sleepfit Call:

Re: [R] survfit question - Q1 and Q3 survival time?

2014-03-17 Thread David Winsemius
On Mar 17, 2014, at 5:14 AM, Therneau, Terry M., Ph.D. wrote: Try help(quantile.survfit) Very handy, now that I know to look for it. I wonder if you could add quantile.survfit, lines.survfit, and points.survfit to links on the help page for survfit.object? (I generally look for the list of

Re: [R] survfit question - Q1 and Q3 survival time?

2014-03-15 Thread David Winsemius
This may be of interest: http://stackoverflow.com/questions/20724872/median-from-survfit-object-and-textconnection Sent from my iPhone On Mar 15, 2014, at 1:43 PM, Lucy Leigh lucy.le...@newcastle.edu.au wrote: Hello, I am using the function survfit in the 'survival' package. Calling the

Re: [R] survfit question - Q1 and Q3 survival time?

2014-03-15 Thread David Winsemius
I don't have access to a computer that will run R at the moment but if I were tackling this, I would first look at the code for summary.survfit and adapt the code that extracts the median ( the 50th percentile ). -- David Sent from my iPhone On Mar 15, 2014, at 1:43 PM, Lucy Leigh

[R] survfit question - Q1 and Q3 survival time?

2014-03-14 Thread Lucy Leigh
Hello, I am using the function survfit in the 'survival' package. Calling the function produces the median survival time automatically, as below. sleepfit - survfit(Surv(timeb, death)~1) sleepfit Call: survfit(formula = Surv(timeb, death) ~ 1) records n.max n.start events median 0.95LCL

[R] survfit question

2010-09-09 Thread andre bedon
Hi, I am attempting to graph a Kaplan Meier estimate for some claims using the survfit function. However, I was wondering if it is possible to plot a cdf of the kaplan meier rather than the survival function. Here is some of my code: library(survival) Surv(claimj,censorj==0)

Re: [R] survfit question

2010-09-09 Thread David Winsemius
On Sep 9, 2010, at 8:50 PM, andre bedon wrote: I am attempting to graph a Kaplan Meier estimate for some claims using the survfit function. However, I was wondering if it is possible to plot a cdf of the kaplan meier rather than the survival function. Here is some of my code: It's not

Re: [R] survfit question

2010-09-09 Thread Kevin E. Thorpe
On 09/09/2010 08:50 PM, andre bedon wrote: Hi, I am attempting to graph a Kaplan Meier estimate for some claims using the survfit function. However, I was wondering if it is possible to plot a cdf of the kaplan meier rather than the survival function. Here is some of my code: Do you