| ttime {event} | R Documentation |
ttime(y, id)
y |
Vector of times. |
id |
Vector of corresponding individual identifiers for who had which sequence of times. |
ttime creates a vector of length sum(y) of times since
each individual began for use with ehr.
J.K. Lindsey
bp, ehr,
ident, pp,
tccov, tpast,
tvcov.
y <- c(5,3,2,4) id <- c(1,1,2,2) itime <- ttime(y, id) itime