Learn R Programming

event (version 1.1.1)

tpast: Create a Vector of Times Past since Previous Events for a Point Process

Description

tpast creates a vector of length sum(y) of times since the immediately preceding event occurred for use with ehr.

Usage

tpast(y)

Arguments

y

Vector of times.

Value

tpast creates a vector of length sum(y) of times since the immediately preceding event occurred for use with ehr.

See Also

bp, ehr, ident, pp, tccov, ttime, tvcov.

Examples

Run this code
# NOT RUN {
y <- c(5,3,2,4)
ptime <- tpast(y)
ptime
# }

Run the code above in your browser using DataLab