cindex {survivalmodels} | R Documentation |
Compute Concordance of survivalmodel Risk
Description
A thin wrapper around survival::concordance which essentially
just sets reverse = TRUE
.
Usage
cindex(risk, truth, ...)
Arguments
risk |
( |
truth |
( |
... |
( |
Value
The numeric value of the index.
Examples
if (!requireNamespace("survival", quietly = TRUE)) {
set.seed(10)
data <- simsurvdata(20)
fit <- deepsurv(data = data[1:10, ])
p <- predict(fit, type = "risk", newdata = data[11:20, ])
concordance(risk = p, truth = data[11:20, "time"])
}
[Package survivalmodels version 0.1.191 Index]