Description Usage Arguments Value Author(s) References Examples
This function calculates crossvalidated versions of Harrell's cindex.
1 
formula 
Formula for prediction model to be used as in

data 
Data set in which to interpret the formula 
type 
One of 
matrix 
if 
A list with elements
concordant 
The number of concordant pairs 
total 
The total number of pairs that can be evaluated 
cindex 
The crossvalidated cindex 
matrix 
Matrix of
crossvalidated prognostic indices (only if argument 
and with attribute "type"
as given as input.
Hein Putter [email protected]
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, 361387.
van Houwelingen HC, Putter H (2012). Dynamic Prediction in Clinical Survival Analysis. Chapman & Hall.
1 2 3 4 5 6 7 8 9 10 11 12  data(ova)
# Real thing takes a long time, so on a smaller data set
ova2 < ova[1:100,]
# Actual cindex
cindex(Surv(tyears,d) ~ Karn + Broders + FIGO + Ascites + Diam, data = ova2)
# Crossvalidated cindices
CVcindex(Surv(tyears,d) ~ Karn + Broders + FIGO + Ascites + Diam, data = ova2)
CVcindex(Surv(tyears,d) ~ Karn + Broders + FIGO + Ascites + Diam, data = ova2,
type="pair")
CVcindex(Surv(tyears,d) ~ Karn + Broders + FIGO + Ascites + Diam, data = ova2,
type="fullpairs")

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.