Learn R Programming

reda (version 0.2.1)

Survr: Formula Response for Recurrent Event Data

Description

Survr is an S3 class that represents formula response for recurrent event data modeled by methods based on counts and rate function. The last letter 'r' in 'Survr' represents 'rate'.

Usage

Survr(ID, time, event)

Arguments

ID
Identificator of each subject.
time
Time of reccurence event or censoring.
event
The status indicator, 0 = censored, 1 = event.

Details

This is a similar function to Survr in package survrec but with a better embedded checking procedure for recurrent event data modeled by methods based on counts and rate function. The checking rules include that
  • Identification of each subject cannot be missing.
  • Event indicator must be coded as 0 (censored) or 1 (event).
  • Event time and censoring time cannot be missing.
  • Each subject must have one and only one censoring time.
  • Event time cannot not be later than censoring time.

See Also

rateReg for model fitting.