powered by
ttime creates a vector of length sum(y) of times since each individual began for use with ehr.
ttime
sum(y)
ehr
ttime(y, id)
Vector of times.
Vector of corresponding individual identifiers for who had which sequence of times.
bp, ehr, ident, pp, tccov, tpast, tvcov.
bp
ident
pp
tccov
tpast
tvcov
# NOT RUN { y <- c(5,3,2,4) id <- c(1,1,2,2) itime <- ttime(y, id) itime # }
Run the code above in your browser using DataLab