biv.rec.plot {BivRec} | R Documentation |
Bivariate Alternating Recurrent Series Plotting
Description
This function plots bivariate recurrent event gap times.
Usage
biv.rec.plot(formula, data)
Arguments
formula |
Formula of the form ID + episode ~ xij + yij.
ID: A vector of subjects' unique identifier which can be numeric or character.
episode: A vector indicating the episode of the bivariate alternating gap time pairs, e.g.: 1, 2, ..., m_i where m_i indicates the last episode for subject i.
xij: A vector with the lengths of the type I gap times.
yij: A vector with the lengths of the type II gap times.
|
data |
A data frame that contains all the vectors listed in the formula
|
Examples
library(BivRec)
set.seed(1234)
sim.data <- biv.rec.sim(nsize=150, beta1=c(0.5,0.5), beta2=c(0,-0.5), tau_c=63, set=1.1)
biv.rec.plot(formula = id + epi ~ xij + yij, data = sim.data)
[Package
BivRec version 1.0.0
Index]