Skip to main content
. 2022 Apr 3;22:92. doi: 10.1186/s12874-022-01558-0

Table 1.

Arguments and compatible standard functions for function bivrecSurv()

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()