pp: Create a Point Process Vector from Times between Events

Description Usage Arguments Value Author(s) See Also Examples

Description

pp creates a vector of length sum(y) of zeroes with a one at the end of each uncensored time interval for use with ehr.

Usage

1
pp(y, censor=1)

Arguments

y

Vector of times.

censor

Vector of censoring indicators.

Value

pp creates a vector of length sum(y) of zeroes with a one at the end of each uncensored time interval for use with ehr.

Author(s)

J.K. Lindsey

See Also

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

Examples

1
2
3
y <- c(5,3,2,4)
py <- pp(y)
py

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

Related to pp in event...