cs2ic {icenReg} | R Documentation |
Convert current status data into interval censored format
Description
Convert current status data into interval censored format
Usage
cs2ic(time, eventOccurred)
Arguments
time |
Time of inspection |
eventOccurred |
Indicator if event has occurred. 0/FALSE implies event has not occurred by inspection time. |
Details
Converts current status data to the interval censored format for usage in icenReg.
Examples
simData <- simCS_weib()
# Simulate current status data
head(cs2ic(simData$time, simData$event))
# Converting data to current status format
fit <- ic_par(cs2ic(time, event) ~ x1 + x2, data = simData)
# Can be used directly in formula
[Package icenReg version 2.0.16 Index]