survCS function

Create a survCS object.

Create a survCS object.

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

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.

Returns

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

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

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

Author(s)

Luis Meira-Machado and Marta Sestelo

  • Maintainer: Marta Sestelo
  • License: GPL (>= 2)
  • Last published: 2023-03-01

Useful links