tpast {event} | R Documentation |
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
.
Author(s)
J.K. Lindsey
See Also
bp
, ehr
,
ident
, pp
,
tccov
, ttime
,
tvcov
.
Examples
y <- c(5,3,2,4)
ptime <- tpast(y)
ptime
[Package event version 1.1.1 Index]