Nothing
#' @importFrom survival concordance
getAUC <- function(y, prob, weights = rep(1,nrow(y))) {
Weights <- as.vector(weights * y)
ny <- nrow(y)
Y <- rep(c(0, 1), each = ny)
Prob <- c(prob, prob)
return(survival::concordance(Y ~ Prob, weights = Weights)$concordance)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.