Recur | R Documentation |
Create an S4 class object that represents formula response for recurrent event data with optional checking procedures embedded.
Recur( time, id, event, terminal, origin, check = c("hard", "soft", "none"), ... )
time |
A numerical vector representing the time of reccurence event or
censoring, or a list with elements named |
id |
Subject identificators. It can be numeric vector, character
vector, or a factor vector. If it is left unspecified, |
event |
A numeric vector that may represent the status, costs, or types of the recurrent events. Logical vector is allowed and converted to numeric vector. Non-positive values are internally converted to zero indicating censoring status. |
terminal |
A numeric vector that may represent the status, costs, or
types of the terminal events. Logival vector is allowed and converted
to numeric vector. Non-positive values are internally converted to zero
indicating censoring status. If a scalar value is specified, all
subjects will have the same status of terminal events at their last
recurrent episodes. The length of the specified |
origin |
The time origin of each subject. If a scalar value is
specified, all subjects will have the same origin at the specified
value. The length of the specified |
check |
A character value specifying how to perform the checks for
recurrent event data. Errors or warnings will be thrown, respectively,
if the |
... |
Other arguments for future usage. A warning will be thrown if any invalid argument is specified. |
This is a successor function of the deprecated function Survr
. See
the vignette by 'vignette("reda-Recur")' for details.
An Recur
object.
library(reda) with(valveSeats, Recur(Days, ID)) with(valveSeats, Recur(Days, ID, No.)) with(valveSeats, Recur(Days, ID, No., terminal = 1)) with(valveSeats, Recur(Days, ID, No., origin = 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.