Survrecu {newTestSurvRec} | R Documentation |
Create a Survival recurrent object type newTestSurvRec
Description
Create a survival recurrent object, usually used as a response variable in a model formula
Usage
Survrecu(id, time, event)
Arguments
id |
Identifier of each subject. This value is the same for all recurrent times of each subject. |
time |
time of recurrence. For each subject the last time are censored. |
event |
The status indicator, 0=no recurrence 1=recurrence. Only these values are accepted. |
Value
An object of class newTestSurvRec is returned. newTestSurRec object is implemented as a matrix of 3 colummns. No method for print. In the case of is.Survrecu, a logical value TRUE if x inherits from class Survrecu, otherwise an FALSE.
Author(s)
Dr. Carlos M. Martinez M., <cmmm7031@gmail.com>
References
Martinez, C. (2009). Generalizacion de algunas pruebas clasicas de comparacion de curvas de supervivencia al caso de eventos de naturaleza recurrente. Tesis doctoral. Universidad Central de Venezuela (UCV). Caracas-Venezuela.
See Also
FitSurvRec, is.Survrecu
Examples
data(MMC.TestSurvRec)
Survrecu(MMC.TestSurvRec$id,MMC.TestSurvRec$time,MMC.TestSurvRec$event)~1