tccov: Create a Vector of Time-constant Covariates for a Point Process
Description
tccov creates a vector of length sum(y) of time-constant
covariates for use with ehr. id must be numbered
consecutively. x must have one value for each distinct id,
Usage
tccov(y, x, id)
Arguments
y
Vector of times.
x
Vector covariate.
id
Vector of corresponding individual identifiers for who had
which sequence of times.
Value
tccov creates a vector of length sum(y) of time-constant
covariates for use with ehr. id must be numbered
consecutively. x must have one value for each distinct id,