Message-ID: <CAHF6YnkzXebMVEPTb2CD=cObZ_cE6NkEd-_n37xmO1zxtAb-gQ@mail.gmail.com>
Date: 2017-05-11T07:11:02Z
From: luca candeloro
Subject: surv function type argument. How to set it
good morning,
I'm not sure how to set the "type" argument correctly in the "Surv"
function ("survival" package) for my data.
In our survival study, a group of oysters is checked at irregular time
intervals.
At each timestep, the number of death, scattered and still alive oysters
has been recorded. Following an example data.frame:
Time1 <-rep (c (0.200, 300), each = 3)
Time2 <-rep (c (200, 300, 370), each = 3)
Event_death <-c (10,8,15)
Event_scattered_censored <-c (3,5,7)
data <-data.frame (Time1, Time2, Event_death, Event_scattered_censored)
data $ Still_alive <-1000-cumsum (Event_scattered_censored + Event_death)
I do not understand how this kind of data can be correctly used by the
"Surv" function and how to set the corresponding type argument.
Thanks for the help, greetings, luca
[[alternative HTML version deleted]]