[R-sig-Epi] surv function type argument. How to set it

Luca Candeloro luca.candeloro at gmail.com
Thu May 11 09:11:02 CEST 2017


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]]



More information about the R-sig-Epi mailing list