View source: R/user_utilities.R
cs2ic | R Documentation |
Convert current status data into interval censored format
cs2ic(time, eventOccurred)
time |
Time of inspection |
eventOccurred |
Indicator if event has occurred. 0/FALSE implies event has not occurred by inspection time. |
Converts current status data to the interval censored format for usage in icenReg.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.