Learn R Programming

event (version 1.1.2)

ident: 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)

Value

ident creates a vector of length sum(y) by repeating the values of individual identifiers for the times for use with ehr.

Arguments

y

Vector of times.

id

Vector of corresponding individual identifiers for who had which sequence of times.

Author

J.K. Lindsey

See Also

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

Examples

Run this code
y <- c(5,3,2,4)
i <- c(1,1,2,2)
id <- ident(y, i)
id

Run the code above in your browser using DataLab