[R] Kaplan-Meier survfit problem

2011-12-11 Thread Esteban Cervetto
2011/12/11 Esteban Cervetto estebancs...@gmail.com I am working with uncensored data. I have duration of workers compensation. Then I have for each the number of days thet it doesn't work. This sample is not censored at right because I query only work accidents with date of return of work

Re: [R] Kaplan-Meier survfit problem

2011-12-11 Thread David Winsemius
On Dec 11, 2011, at 5:48 PM, Esteban Cervetto wrote: 2011/12/11 Esteban Cervetto estebancs...@gmail.com I am working with uncensored data. I have duration of workers compensation. Then I have for each the number of days thet it doesn't work. This sample is not censored at right because I

Re: [R] Kaplan-Meier survfit problem

2011-12-10 Thread capitantyler
done it, again, i have the next problem my traduction: The object (list) cannot be corced as double Original: *km1 - survfit(Surv(as.numeric(T.201110))~1)* Error en Surv(as.numeric(T.201110)) : el objeto (list) no puede ser coercionado a 'double' note that need it convert to numeric class,

Re: [R] Kaplan-Meier survfit problem

2011-12-10 Thread David Winsemius
On Dec 10, 2011, at 6:39 PM, capitantyler wrote: done it, again, i have the next problem my traduction: The object (list) cannot be corced as double Original: *km1 - survfit(Surv(as.numeric(T.201110))~1)* Error en Surv(as.numeric(T.201110)) : el objeto (list) no puede ser coercionado a

[R] Kaplan-Meier survfit problem

2010-04-19 Thread ericyujin99
When I try to the code from library(survival) of library(ISwR), the following code survfit(Surv(days,status==1)) that could produce Kaplan-Meier estimates shows the following error Error in survfit(Surv(days, status == 1)) : Survfit requires a formula or a coxph fit as the first argument

Re: [R] Kaplan-Meier survfit problem

2010-04-19 Thread Dimitris Rizopoulos
you need: survfit(Surv(days, status == 1) ~ 1) I hope it helps. Best, Dimitris On 4/19/2010 4:44 AM, ericyujin99 wrote: When I try to the code from library(survival) of library(ISwR), the following code survfit(Surv(days,status==1)) that could produce Kaplan-Meier estimates shows the