R/print.roc.R

Defines functions `print.roc`

`print.roc` <- function(x, digits = 3, ...) {
    cat("\n")
    writeLines(strwrap("ROC curve of dissimilarities", prefix = "\t"))
    cat("\n")
    writeLines(strwrap("Discrimination for all groups:"))
    cat("\n")
    with(x$roc$Combined, cat(paste("Optimal Dissimilarity =",
                                  round(optimal, digits), "\n\n")))
    with(x$roc$Combined, cat(paste("AUC = ", round(AUC, digits),
                                  ", p-value: ", format.pval(p.value),
                                  "\n", sep = "")))
    with(x$roc$Combined, cat(paste("No. within:", n.in,
                                  "  No. outside:", n.out, "\n")))
    cat("\n")
    invisible(x)
}

Try the analogue package in your browser

Any scripts or data that you put into this service are public.

analogue documentation built on June 21, 2021, 1:08 a.m.