Learn R Programming

event (version 1.1.1)

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)

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.

See Also

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

Examples

Run this code
# NOT RUN {
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