I have a question regarding the cumulative incidence curves obtained using prodlim, which seems to differ quite a lot compared to the ones that I can obtain from the survfit function in the survival package. In a relatively basic competing risks setup, I would expect the two implementations to give more similar results.
As a reprex, we can use some example data from “Kleinbaum, David G., and Mitchel Klein.
Survival analysis: a self-learning text. Vol. 3. New York: Springer, 2012.”
which looks like this:
pfit <- prodlim(Hist(time, status) ~ 1, data = df)
pfit_tidy <- map_dfr(summary(pfit)$table, as_tibble, .id = "cause") |>
select(cause, time, cuminc)
If we compare the cumulative incidence curves they differ quite alot. As far
as I understand, the two methods both use the Aalen-Johansen estimator and
I have a hard time understanding why the shouldn’t be identical.
I can also add, that the cumulative incidence from survfit corresponds exactly to the ones that are presented in the Kleinbaum & Klein textbook where they "manually" go through the calculation of cumulative incidence curves.
Thanks for a very useful package.
I have a question regarding the cumulative incidence curves obtained using
prodlim
, which seems to differ quite a lot compared to the ones that I can obtain from thesurvfit
function in thesurvival
package. In a relatively basic competing risks setup, I would expect the two implementations to give more similar results.As a reprex, we can use some example data from “Kleinbaum, David G., and Mitchel Klein. Survival analysis: a self-learning text. Vol. 3. New York: Springer, 2012.” which looks like this:
For reference, I'm using the following libraries
First I wrangle the data into a tabular format that can be used by
prodlim
andsurvfit
And then, fitting and tidying the results from survfit
... and similarly for prodlim
If we compare the cumulative incidence curves they differ quite alot. As far as I understand, the two methods both use the Aalen-Johansen estimator and I have a hard time understanding why the shouldn’t be identical.
Created on 2023-01-19 with reprex v2.0.2
I can also add, that the cumulative incidence from
survfit
corresponds exactly to the ones that are presented in the Kleinbaum & Klein textbook where they "manually" go through the calculation of cumulative incidence curves.Kind regards, Peter