createInt {ICSKAT} | R Documentation |
Called by gen_IC_data() to turn the actual outcome times and observation times into interval-censored outcomes for each subject. Apply this with mapply over a data.frame of visit times, pass in the exact times.
createInt(obsTimes, eventTime)
obsTimes |
A vector of all the times a subject is observed. |
eventTime |
The exact event time for the subject. |
A 2*1 vector which is the interval of the event time
obsTimes <- 1:10
eventTime <- 7.7
createInt(obsTimes, eventTime)