survCS | R Documentation |
Creates a "survCS" object, usually used as a response variable in a model formula.
survCS(time1, event1, Stime, event, ...)
time1 |
First time or censoring time. |
event1 |
Indicator of the first time; 0 if the first time is censored and 1 otherwise. |
Stime |
The total time of the process. |
event |
Censoring indicator of the survival time of the process; 0 if the total time is censored and 1 otherwise. |
... |
Other options. |
Arguments in this function must be introduced in the following order: time1, event1, time2, ..., Stime and event, where time1, time2, ..., Stime are ordered event times and event1, event2,..., event their corresponding indicator statuses.
An object of class "survCS" and of class "surv". "survCS" objects are implemented as a single dataframe.
Luis Meira-Machado and Marta Sestelo
with(colonCS, survCS(time1, event1, Stime, event))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.