ttime: Create a Vector of Total Time Elapsed for each Individual for...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ehr.r

Description

ttime creates a vector of length sum(y) of times since each individual began for use with ehr.

Usage

1
ttime(y, id)

Arguments

y

Vector of times.

id

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

Value

ttime creates a vector of length sum(y) of times since each individual began for use with ehr.

Author(s)

J.K. Lindsey

See Also

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

Examples

1
2
3
4
y <- c(5,3,2,4)
id <- c(1,1,2,2)
itime <- ttime(y, id)
itime

swihart/event documentation built on May 26, 2017, 11:09 p.m.