Learn R Programming

reda (version 0.3.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, check = TRUE, ...)

Arguments

ID

Identificator of each subject.

time

Time of reccurence event or censoring.

event

The status indicator, 0 = censored, 1 = event.

check

Logical value suggesting whether to perform data checking procedure. The default value is TRUE. FALSE should be set with caution and only for processed data already in recerruent event data framework.

...

Other arguments for future usage.

Details

This is a similar function to Survr in package survrec but with a more considerate checking procedure embedded 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 must be numeric and cannot be missing.

  • Each subject must have only one censoring time.

  • Event time cannot not be later than censoring time.

See Also

rateReg for model fitting.