powered by
tpast creates a vector of length sum(y) of times since the immediately preceding event occurred for use with ehr.
tpast
sum(y)
ehr
tpast(y)
Vector of times.
J.K. Lindsey
bp, ehr, ident, pp, tccov, ttime, tvcov.
bp
ident
pp
tccov
ttime
tvcov
y <- c(5,3,2,4) ptime <- tpast(y) ptime
Run the code above in your browser using DataLab