reSurv | R Documentation |
reSurv
ObjectCreate a recurrent event survival object, used as a response variable in reReg
.
This function is deprecated in Version 1.1.6.
A recurrent event object is now being created with Recur()
.
See '?Recur()' for details.
reSurv(time1, time2, id, event, status, origin = 0)
time1 |
when " |
time2 |
an optional vector for ending time for the gap time between two successive recurrent events. |
id |
subject's id. |
event |
a binary vector used as the recurrent event indicator. |
status |
a binary vector used as the status indicator for the terminal event. |
origin |
a numerical vector indicating the time origin of subjects.
When |
## Not run:
data(simDat)
## being deprecated in Verson 1.1.7
with(dat, reSurv(Time, id, event, status))
## Use Recur() instead
with(dat, Recur(Time, id, event, status))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.