You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am very excited to see the tidymodels implementation of survival analysis. I am currently utilizing competing risk models in my research, and wanted to advocate for their implementation in the tidymodels framework in the future (But given their complexity, I imagine it would be low priority at this time).
The models of interest would be the Fine-Gray model (similar to the Cox Proportional hazards model) as well as the Cumulative Incidence function (similar to the Kaplan-Meier)
Competing risk dataset
As an example, we can use the MGUS2 dataset from the survival package, where patients with the disease MGUS have the potential to transform into a Plasma Cell Malignancy (PCM), but are also at risk for death. We will do imputation to get rid of all NA values.
Per the documentation, The predict function "returns a matrix with the unique type 1 failure times in the first column, and the other columnsgiving the estimated subdistribution function corresponding to the covariate combinations in the
rows of cov1 and cov2, at each failure time (the value that the estimate jumps to at that failure
time)."
Unfortunately, there is no predict function, and the output from the crrp() function does not include convenient parameters such as a P value. There are standard errors, so a P value can be manually calculated. Creating a tidy wrapper may be difficult. In addition, this package has not been maintained since its first commit in 2015.
The fastcmprsk uses a wrapper in C to do the same unregularized and regularized Fine-Gray models, similar to above. However the implementation uses a novel algorithm that is much faster than the above.
Unfortunately, there also is no predict function assocated with the fcrrp objects. In addition, there is no summary() function, so making a tidy wrapper would also be difficult.
Hello,
I am very excited to see the tidymodels implementation of survival analysis. I am currently utilizing competing risk models in my research, and wanted to advocate for their implementation in the tidymodels framework in the future (But given their complexity, I imagine it would be low priority at this time).
The models of interest would be the Fine-Gray model (similar to the Cox Proportional hazards model) as well as the Cumulative Incidence function (similar to the Kaplan-Meier)
Competing risk dataset
As an example, we can use the MGUS2 dataset from the survival package, where patients with the disease MGUS have the potential to transform into a Plasma Cell Malignancy (PCM), but are also at risk for death. We will do imputation to get rid of all NA values.
Fine-Gray Models
cmprsk:::
crr
The model fitting function:
Per the documentation, The predict function "returns a matrix with the unique type 1 failure times in the first column, and the other columnsgiving the estimated subdistribution function corresponding to the covariate combinations in the
rows of cov1 and cov2, at each failure time (the value that the estimate jumps to at that failure
time)."
In addition, there is a tidier in the broom package for crr objects.
References: Subdistribution Analysis of Competing Risks (pdf)
crrp:::
crrp
This package is useful for penalized Fine-Gray models, using LASSO, SCAD, MCP, and their group versions.
The model fitting function:
Unfortunately, there is no predict function, and the output from the crrp() function does not include convenient parameters such as a P value. There are standard errors, so a P value can be manually calculated. Creating a tidy wrapper may be difficult. In addition, this package has not been maintained since its first commit in 2015.
References: Penalized Variable Selection in Competing Risks Regression (pdf)
fastcmprsk:::
fastCrr
The fastcmprsk uses a wrapper in C to do the same unregularized and regularized Fine-Gray models, similar to above. However the implementation uses a novel algorithm that is much faster than the above.
The model fitting function:
Per documentation, the predict function calculates the cumulative incidence function.
Though there is no tidy wrapper for the fcrr objects, the output is almost equivalent to the above crr objects, and making a wrapper would be simple.
References: Fine-Gray Regression via Forward-Backward Scan (pdf)
fastcmprsk:::
fastCrrp
This is the faster implementation of penalized Fine-Gray models, similar to the crrp package.
The model fitting function:
Unfortunately, there also is no predict function assocated with the fcrrp objects. In addition, there is no summary() function, so making a tidy wrapper would also be difficult.
References: Fine-Gray Regression via Forward-Backward Scan (pdf)
The text was updated successfully, but these errors were encountered: