MerQuR+Statistics Glossary

Statistics Glossary → Cumulative incidence function (CIF) and Gray's test

Cumulative incidence function (CIF) and Gray's testconcept

In the presence of competing events, the function giving the probability that a particular type of event has occurred by time t, and the test that compares this function between groups.

With competing risks, one type of event (e.g. death from another cause) makes the event of interest (e.g. death from cancer) impossible. Treating competing events as censored and computing 1 - Kaplan-Meier then overstates the probability of the event of interest, because it assumes that those who had the competing event could still experience the event of interest later. The CIF (Aalen-Johansen estimator) estimates the probability of each event type while accounting for this competition; the CIFs of all event types plus the probability of remaining event-free sum to 1.

Gray's test examines whether two or more groups have equal CIFs for a given event type. It asks a different question from the log-rank test on cause-specific hazards: one compares the rate of the event, the other the probability that it has occurred. To study covariate effects on the CIF, the Fine-Gray subdistribution hazard model is used.

An everyday example

Elderly patients with a hip replacement are followed to see how likely they are to need revision surgery. Some die of other causes without revision. Kaplan-Meier, which censors these patients, might put the 10-year probability of revision at 15%, while the CIF, which treats death as a competing event, might give 10%; the latter correctly reflects how many patients will actually undergo revision.

In MerQur

'CIF group variable' (cumulative incidence per group and Gray's test), 'CIF time points' and 'Additional output: CIF confidence intervals' in the Competing Risks analysis. In the Kaplan-Meier Survival Analysis the cumulative incidence curve of the 'Plot type' option is 1 - S; it should not be used in place of the CIF when competing events are present.

Analyses where this concept appears

Kaplan-Meier Survival AnalysisCompeting Risks

Related concepts

Fine-Gray subdistribution hazard modelCause-specific hazard