Re: [R] Error in Surv(time, status) : Time variable is not numeric

2009-01-27 Thread Braem M
Thank you very much. It works right now. I solved the problem by writing 'time' in capitals. Chris Andrews wrote: > > R is finding the R function 'time' rather than your variable time in your > dataset. Perhaps adding 'data=mydata' to your function call will resolve > your issue. > > Chris

Re: [R] Error in Surv(time, status) : Time variable is not numeric

2009-01-27 Thread Braem M
Thank you for your reply. Even when I put data=.. in my model statement, I get the same error. Chris Andrews wrote: > > R is finding the R function 'time' rather than your variable time in your > dataset. Perhaps adding 'data=mydata' to your function call will resolve > your issue. > > Chr

Re: [R] Error in Surv(time, status) : Time variable is not numeric

2009-01-27 Thread Chris Andrews
R is finding the R function 'time' rather than your variable time in your dataset. Perhaps adding 'data=mydata' to your function call will resolve your issue. Chris Braem M wrote: > > Dear, > > I want to analyze two-level survival data using a shared frailty model, > for which I want to use

[R] Error in Surv(time, status) : Time variable is not numeric

2009-01-26 Thread Braem M
Dear, I want to analyze two-level survival data using a shared frailty model, for which I want to use the R package 'Frailtypack", proposed by Rondeau et al. The dataset was built using SAS software. I also tried to change the format using SPSS and Excell. My (reduced) dataset has following col