CIF estimation + Gray's test + Fine-Gray regression | Competing risks analysis for time-to-event data
In standard survival analysis, each subject can experience only one type of event (or censoring). In competing risks analysis, subjects may experience one of several mutually exclusive event types. For example, in a cancer study, patients may die from cancer (event of interest) or from other causes (competing event). The occurrence of one event precludes the other.
The CIF estimates the probability of experiencing the event of interest by time t, in the presence of competing risks. Unlike the Kaplan-Meier estimate (which treats competing events as censored and overestimates the event probability), the CIF correctly accounts for competing events.
Gray's test compares CIF curves across groups, analogous to the log-rank test in standard survival analysis. A significant p-value (p < 0.05) indicates that the cumulative incidence differs between groups.
The Fine-Gray model (Fine & Gray, 1999) regresses the subdistribution hazard on covariates. The subdistribution hazard for event type k is:
Visualizes sHR with 95% CI for each covariate. Red points are statistically significant (p < 0.05); gray points are not significant. The dashed vertical line at sHR = 1 represents no effect.
Shows the predicted cumulative incidence curve for a reference covariate pattern (numeric variables set to mean, categorical variables set to mode). This is a representative subject's risk profile, not the population-averaged CIF. For nonlinear models, mean covariates do not necessarily yield the average CIF.
An approximate test based on Schoenfeld residuals from the weighted Cox model for the subdistribution hazard. This is a diagnostic heuristic, not a formal test of the proportional subdistribution hazards assumption. Not a formal test; for diagnosis only. A significant p-value (p < 0.05) suggests potential time-varying effects and warrants further investigation (e.g., time-dependent covariates or stratification).
The status variable must use integer coding:
Fine JP, Gray RJ. A proportional hazards model for the subdistribution of a competing risk. Journal of the American Statistical Association. 1999;94(446):496-509.
Gray RJ. A class of K-sample tests for comparing the cumulative incidence of a competing risk. Annals of Statistics. 1988;16(3):1141-1154.