powered by
The tidycmprsk package exports a tidier for "cuminc" objects. This function adds on top of that and returns more information.
"cuminc"
tidy_cuminc(x, times = NULL)
a tibble
a 'cuminc' object created with tidycmprsk::cuminc()
tidycmprsk::cuminc()
numeric vector of times. Default is NULL, which returns all observed times.
NULL
library(tidycmprsk) cuminc(Surv(ttdeath, death_cr) ~ trt, trial) %>% tidy_cuminc()
Run the code above in your browser using DataLab