Last chance! 50% off unlimited learning
Sale ends in
bp
creates a vector of length sum(y)
of cumulative
numbers of previous events for each individual for use in fitting
birth processes with ehr
. Add one if the process starts
at an event.
bp(y, id, censor=1)
Vector of times.
Vector of corresponding individual identifiers for who had which sequence of times.
Vector of censoring indicators.
bp
creates a vector of length sum(y)
of cumulative
numbers of previous events for each individual for use in fitting
birth processes with ehr
. Add one if the process starts
at an event.
# NOT RUN {
y <- c(5,3,2,4)
i <- c(1,1,2,2)
birth <- bp(y, i)
birth
# }
Run the code above in your browser using DataLab