Learn R Programming

condSURV (version 2.0.4)

survCS: Create a survCS object.

Description

Creates a "survCS" object, usually used as a response variable in a model formula.

Usage

survCS(time1, event1, Stime, event, ...)

Value

An object of class "survCS" and of class "surv". "survCS" objects are implemented as a single dataframe.

Arguments

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.

Author

Luis Meira-Machado and Marta Sestelo

Details

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.

Examples

Run this code


with(colonCS, survCS(time1, event1, Stime, event))


Run the code above in your browser using DataLab