Create an S4 class that represents formula response for recurrent event data modeled by methods based on counts and rate function. Note that the function is deprecated since version 0.5.0 and will be removed in future.
Survr(ID, time, event, origin = 0, check = TRUE, ...)
Subject identificators. It can be numeric vector, character vector, or a factor vector.
Time of reccurence event or censoring. In addition to numeric
A numeric vector indicating failure cost or event indicator
taking positive values as costs (
The time origin of each subject or process. In addition to
A logical value suggesting whether to perform data checking
procedure. The default value is
Other arguments for future usage.
This is a similar function to
Survr in package
survrec but with a more considerate checking procedure embedded for
recurrent event data modeled by methods based on counts and rate function.
The checking rules apply to each subject respectively and include that
Subject identification, event times, censoring time, and event indicator cannot be missing or contain missing values.
There has to be only one censoring time not earlier than any event time.
The time origin has to be the same and not later than any event time.