powered by
ident creates a vector of length sum(y) by repeating the values of individual identifiers for the times for use with ehr.
ident
sum(y)
ehr
ident(y, id)
Vector of times.
Vector of corresponding individual identifiers for who had which sequence of times.
J.K. Lindsey
bp, ehr, pp, tccov, tpast, ttime, tvcov.
bp
pp
tccov
tpast
ttime
tvcov
y <- c(5,3,2,4) i <- c(1,1,2,2) id <- ident(y, i) id
Run the code above in your browser using DataLab