Computes the conditional Boyce index for model evaluation
Source:R/concordance.R
concordance_indices.Rd
These functions compute different concordance indices.
Usage
conditionalBoyce(
x,
method = c("pearson", "kendall", "spearman")[1],
plotit = FALSE,
errors = TRUE,
warnings = TRUE
)
conditionalSomersD(x, errors = TRUE, warnings = TRUE)
conditionalAUC(x, errors = TRUE, warnings = TRUE)
AUC(x, errors = TRUE, warnings = TRUE)
coxnet.deviance(x, errors = TRUE, warnings = TRUE)
Cindex(x, errors = TRUE, warnings = TRUE)
Details
The function conditionalAUC()
is the implementation of the computation of the Area Under the Curve as related
to the Sommers'D index, as described in https://cran.r-project.org/web/packages/survival/vignettes/concordance.pdf.
It is implemented by accounting for strata, ideal for conditional logistic regression, but it is under testing.
The function AUC()
uses the pROC::auc()
function and does not account for strata.
Functions conditionalBoyce and conditionalSomersD both account for strata, but are under checking.
The functions coxnet.deviance and Cindex are wrappers for the same functions from glmnet, which are
suitable for cox models, but here they use the same arguments as all the other concordance variables.