# NOT RUN {
data(simDat)
reObj <- with(simDat, Recur(Time, id, event, status))
## Event plots:
plot(reObj)
plot(reObj, event.result = "decreasing")
## MCF plots
plot(reObj, mcf = TRUE)
plot(reObj, mcf = TRUE, mcf.adjrisk = FALSE)
## With (hypothetical) multiple event types
set.seed(1)
reObj2 <- with(simDat, Recur(Time, id, event * sample(1:3, nrow(simDat), TRUE), status))
plot(reObj2)
# }
Run the code above in your browser using DataLab