Survr: Create a Survival recurrent object

Description Usage Arguments Value See Also Examples

Description

Create a survival recurrent object, usually used as a response variable in a model formula

Usage

1
2
Survr(id, time, event)
is.Survr(x) 

Arguments

id

Identificator of each subject. This value is the same for all recurrent times of each subject.

time

time of reccurence. For each subject the last time are censored.

event

The status indicator, 0=no recurrence 1=recurrence. Only this values are accepted.

x

any R object.

Value

An object of class Survr. Survr objects are implemented as a matrix of 3 colummns. No method for print.

In the case of is.Survr, a logical value T if x inherits from class "Survr", otherwise an F.

See Also

survfitr,psh.fit,wc.fit,mlefrailty.fit

Examples

1
2
 data(MMC)
 Survr(MMC$id,MMC$time,MMC$event)

survrec documentation built on May 30, 2017, 7:19 a.m.

Search within the survrec package
Search all R packages, documentation and source code