[R] cox memory

2009-09-22 Thread Λεωνίδας Μπαντής
Hi there, I have a rather large data set and perform the following cox model: test1 - list(tstart,tstop,death1,chemo1,radio1,horm1) out1-coxph( Surv(tstart,tstop, death1) ~

Re: [R] cox memory

2009-09-22 Thread David Winsemius
On Sep 21, 2009, at 7:27 PM, Λεωνίδας Μπαντής wrote: Hi there, I have a rather large data set and perform the following cox model: test1 - list(tstart,tstop,death1,chemo1,radio1,horm1) out1-coxph( Surv(tstart,tstop, death1) ~ chemo1+chemo1:log(tstop

[R] cox memory

2009-09-22 Thread Λεωνίδας Μπαντής
If I use the following newdata=data.frame(chemo1=0, horm1=0, age1=mean(age1), grade1=0, positive1=1, size1=mean(size1)   ) then I get Error in model.frame.default(Terms, newdata, ...) :   variable lengths differ (found for 'log(tstop + 1)') In addition: Warning message: 'newdata' had 1 rows

Re: [R] cox memory

2009-09-22 Thread David Winsemius
I did not test to see if the design of the data.frame you offered was valid input to your model, since you did not provide a means to test it within R. I only meant to say that creating a very long vector with identical entries should not be necessary if the newdata argument were