ident {event} | R Documentation |
Create an Individual Identification Vector for a Point Process
Description
ident
creates a vector of length sum(y)
by repeating the
values of individual identifiers for the times for use with
ehr
.
Usage
ident(y, id)
Arguments
y |
Vector of times. |
id |
Vector of corresponding individual identifiers for who had which sequence of times. |
Value
ident
creates a vector of length sum(y)
by repeating the
values of individual identifiers for the times for use with
ehr
.
Author(s)
J.K. Lindsey
See Also
bp
, ehr
,
pp
, tccov
,
tpast
, ttime
,
tvcov
.
Examples
y <- c(5,3,2,4)
i <- c(1,1,2,2)
id <- ident(y, i)
id
[Package event version 1.1.1 Index]