Description Usage Arguments Value Author(s) References Examples
This function calculates cross-validated versions of Harrell's c-index.
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 cross-validated c-index |
matrix |
Matrix of
cross-validated prognostic indices (only if argument |
and with attribute "type"
as given as input.
Hein Putter H.Putter@lumc.nl
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.
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 c-index
cindex(Surv(tyears,d) ~ Karn + Broders + FIGO + Ascites + Diam, data = ova2)
# Cross-validated c-indices
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.