biv.rec.reformat {BivRec}R Documentation

A function to create a biv.rec object

Description

This function simulates recurrent event data based on a linear combination of two covariates.

Usage

biv.rec.reformat(identifier, xij, yij, c_indicatorY, c_indicatorX, episode,
  covariates, method, ai, condgx, data)

Arguments

identifier

Vector of subject's unique identifier (i). Passed from biv.rec.fit()

xij

Vector with the lengths of time spent in event of type X for individual i in episode j. Passed from biv.rec.fit()

yij

vector with the lengths of time spent in event of type Y for individual i in episode j. Passed from biv.rec.fit()

c_indicatorY

Vector with values of 0 for the last episode for subject i or 1 otherwise. A subject with only one episode will have one 0. Passed from biv.rec.fit()

c_indicatorX

Optional vector with values of 0 if the last episode for subject i occurred for event of type X or 1 otherwise. A subject with only one episode could have either one 1 (if he was censored at event Y) or one 0 (if he was censored at event X). Passed from biv.rec.fit()

episode

Vector indicating the observation or episode (j) for a subject (i). Passed from biv.rec.fit()

covariates

A Matrix of Covariates. Passed from biv.rec.fit()

method

A string for method to be used. Passed from biv.rec.fit()

ai

Passed from biv.rec.fit()

condgx

Passed from biv.rec.fit()

data

Passed from biv.rec.fit()

Value

a biv.rec object ready for fitting.

See Also

biv.rec.fit


[Package BivRec version 1.0.0 Index]