Skip to main content

Table 1 Arguments and compatible standard functions for function bivrecSurv()

From: BivRec: an R package for the nonparametric and semiparametric analysis of bivariate alternating recurrent events

Argument

Description

id

Vector of subject’s unique identifier.

episode

Vector indicating the pair or episode number (j) for a subject (i); this will determine order of events for each subject.

xij

Vector with the lengths of time spent in event of Type I for individual i in episode j.

yij

Vector with the lengths of time spent in event of Type II for individual i in episode j.

d1

Vector of censoring indicator corresponding to Type I gap times (xij); d1 = 1 for uncensored, and = 0 for censored gap times.

d2

Vector of censoring indicator corresponding to Type II gap times (yij); d2 = 1 for uncensored, and = 0 for censored gap times. Note that in the last episode, yij is always censored (i.e., d2 = 0).

Compatible functions:

plot()