Re: [R] Function Surv and interpretation

2009-05-18 Thread Terry Therneau
Dr Pearce, 1. The heart of your question is why Surv(time, death) works, when the standard S action would be to match "death" to the "time2" argument. The answer is that Surv is not conventional -- if only 2 unnamed arguments are present, then it assumes that they match to the time and eve

[R] Function Surv and interpretation

2009-05-15 Thread K F Pearce
Dear everyone, My question involves the use of the survival object. We can have Surv(time,time2,event, type=, origin = 0) (1) As detailed on p.65 of: http://cran.r-project.org/web/packages/survival/survival.pdf My data (used in my study) is 'right ce