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.
bp, ehr, ident, pp, tccov, ttime, tvcov.
bp
ident
pp
tccov
ttime
tvcov
# NOT RUN { y <- c(5,3,2,4) ptime <- tpast(y) ptime # }
Run the code above in your browser using DataLab