Description Usage Arguments Details Value Author(s) References See Also Examples

This function compares two concordance indices computed from the same data by using the function `concordance.index`

. The statistical test is a Student t test for dependent samples.

1 | ```
cindex.comp(cindex1, cindex2)
``` |

`cindex1` |
first concordance index as returned by the |

`cindex2` |
second concordance index as returned by the |

The two concordance indices must be computed from the same samples (and corresponding survival data). The function uses a Student t test for dependent samples.

`p.value ` |
p-value from the Student t test for the comparison cindex1 > cindex2. |

`cindex1 ` |
value of the first concordance index. |

`cindex2 ` |
value of the second concordance index. |

Benjamin Haibe-Kains

Haibe-Kains, B. and Desmedt, C. and Sotiriou, C. and Bontempi, G. (2008) "A comparative study of survival models for breast cancer prognostication based on microarray data: does a single gene beat them all?", *Bioinformatics*, **24**(19), pages 2200–2208.

1 2 3 4 5 6 7 8 9 10 11 12 | ```
set.seed(12345)
age <- rnorm(100, 50, 10)
size <- rexp(100,1)
stime <- rexp(100)
cens <- runif(100,.5,2)
sevent <- as.numeric(stime <= cens)
stime <- pmin(stime, cens)
c1 <- concordance.index(x=age, surv.time=stime, surv.event=sevent,
method="noether")
c2 <- concordance.index(x=size, surv.time=stime, surv.event=sevent,
method="noether")
cindex.comp(c1, c2)
``` |

```
Loading required package: survival
Loading required package: prodlim
$p.value
[1] 0.005242669
$cindex1
[1] 0.5774342
$cindex2
[1] 0.4358541
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.