Skip to content

survival object

2 messages · Eugenio Larios, Joshua Wiley

#
On Sat, Apr 9, 2011 at 7:36 PM, Eugenio Larios
<elariosc at email.arizona.edu> wrote:
I could be wrong, but I think the form for your intervals should be:

Surv(start, stop, event)

depending how your data is stored, you may need to reshape it to a
format amenable to this (e.g., ?reshape (the function) or
reshape/reshape2 (the packages)).
Yes.  Although it makes the single call a bit long, I kind of like to
locate the call to Surv() within survfit(), so that it is evaluated in
an environment including the variables in "mydata".  Just to avoid
repeatedly typing "mydata" or attach()ing it

Cheers,

Josh