cindex: Calculate Harrell's c-index

Description Usage Arguments Value Author(s) References Examples

View source: R/cindex.r

Description

This function calculates Harrell's c-index.

Usage

1

Arguments

formula

Formula for prediction model to be used as in coxph

data

Data set in which to interpret the formula

Value

A list with elements

concordant

The number of concordant pairs

total

The total number of pairs that can be evaluated

cindex

Harrell's c-index

Author(s)

Hein Putter [email protected]

References

Harrell FE, Lee KL & Mark DB (1996), Multivariable prognostic models: issues in developing models, evaluating assumptions and adequacy, and measuring and reducing errors, Statistics in Medicine 15, 361-387.

van Houwelingen HC, Putter H (2012). Dynamic Prediction in Clinical Survival Analysis. Chapman & Hall.

Examples

1
2
data(ova)
cindex(Surv(tyears, d) ~ Karn + Broders + FIGO + Ascites + Diam, data = ova)

Example output

Loading required package: survival
$concordant
[1] 39298.5

$total
[1] 59026

$cindex
[1] 0.6657829

dynpred documentation built on May 2, 2019, 5:07 a.m.