cindex: Concordance Index.

Description Usage Arguments Value

View source: R/my_functions.r

Description

Calculates the concordance index from the results of a censored survival model. Very fast compared to other packages.

Usage

1
cindex(probs, time, event)

Arguments

probs

The prognostic score of each patient.

time

The time of each patient.

event

The death of each patient: 1 for a patient death, 0 for censored.

Value

The concordance index.


traversc/trqwe documentation built on Dec. 4, 2020, 4:21 a.m.