ident: Create an Individual Identification Vector for a Point...

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
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

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

Example output

Loading required package: rmutil

Attaching package: 'rmutil'

The following object is masked from 'package:stats':

    nobs

The following objects are masked from 'package:base':

    as.data.frame, units

 [1] 1 1 1 1 1 1 1 1 2 2 2 2 2 2

event documentation built on May 2, 2019, 4:07 a.m.