Skip to contents

Computes the concordance index (C-index) for a competing risks setting.

Usage

CindexCR(time, status, predicted, Cause_int = 1)

Arguments

time

A numeric vector of observed survival times (must be positive).

status

An integer vector indicating event status:

  • 0 = censored

  • 1 = cause 1 event

  • 2 = cause 2 event

predicted

A numeric vector of predicted event probabilities corresponding to Cause_int.

Cause_int

An integer specifying which cause of failure (1 or 2) to evaluate the concordance index for.

Value

A numeric scalar giving the concordance index (value between 0 and 1).