powered by
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.
pp
sum(y)
ehr
pp(y, censor=1)
Vector of times.
Vector of censoring indicators.
bp, ehr, ident, tccov, tpast, ttime, tvcov.
bp
ident
tccov
tpast
ttime
tvcov
# NOT RUN { y <- c(5,3,2,4) py <- pp(y) py # }
Run the code above in your browser using DataLab