survCS {condSURV}R Documentation

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, ...)

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.

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.

Value

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

Author(s)

Luis Meira-Machado and Marta Sestelo

Examples



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



[Package condSURV version 2.0.4 Index]