Re: [R] command in survival package

2006-01-23 Thread Linda Lei
; R-help@stat.math.ethz.ch Subject: Re: [R] command in survival package On Fri, 2006-01-20 at 15:27 -0800, Thomas Lumley wrote: On Fri, 20 Jan 2006, Linda Lei wrote: Hi there, I have a question about one command sentence when I follow the example in the book of Survival analysis in S

Re: [R] command in survival package

2006-01-23 Thread Thomas Lumley
On Mon, 23 Jan 2006, Linda Lei wrote: Thank you guys. But I tried the commands and I still get: aml1-aml[aml$group==1,] aml1 [1] time status x 0 rows (or 0-length row.names) esf.fit - survfit(Surv(aml1$weeks,status) ~ 1) Error in Surv(aml1$weeks, status) : Time variable is not numeric

Re: [R] command in survival package

2006-01-23 Thread Marc Schwartz (via MN)
On Mon, 2006-01-23 at 10:52 -0800, Thomas Lumley wrote: On Mon, 23 Jan 2006, Linda Lei wrote: Thank you guys. But I tried the commands and I still get: aml1-aml[aml$group==1,] aml1 [1] time status x 0 rows (or 0-length row.names) esf.fit - survfit(Surv(aml1$weeks,status) ~ 1)

Re: [R] command in survival package

2006-01-23 Thread Marc Schwartz
On Mon, 2006-01-23 at 10:52 -0800, Thomas Lumley wrote: On Mon, 23 Jan 2006, Linda Lei wrote: Thank you guys. But I tried the commands and I still get: aml1-aml[aml$group==1,] aml1 [1] time status x 0 rows (or 0-length row.names) esf.fit -

[R] command in survival package

2006-01-20 Thread Linda Lei
Hi there, I have a question about one command sentence when I follow the example in the book of Survival analysis in S: aml1-aml[aml$group==1] but I got the error warning: NULL data frame with 23 rows Thus, I couldn't keep going on the next command:

Re: [R] command in survival package

2006-01-20 Thread Thomas Lumley
On Fri, 20 Jan 2006, Linda Lei wrote: Hi there, I have a question about one command sentence when I follow the example in the book of Survival analysis in S: aml1-aml[aml$group==1] If this is really what the book says you should probably complain to the author. However, if it says

Re: [R] command in survival package

2006-01-20 Thread Marc Schwartz
On Fri, 2006-01-20 at 15:27 -0800, Thomas Lumley wrote: On Fri, 20 Jan 2006, Linda Lei wrote: Hi there, I have a question about one command sentence when I follow the example in the book of Survival analysis in S: aml1-aml[aml$group==1] If this is really what the book says