R/print.cROC.R

Defines functions print.cROC

Documented in print.cROC

print.cROC <-
function(x, ...) {
	method <- switch(class(x)[1], "cROC.kernel" = "Conditional ROC curve - Kernel-based", 
								  "cROC.bnp" = "Conditional ROC curve - Bayesian nonparametric", 
								  "cROC.bsp" = "Conditional ROC curve - Bayesian semiparametric", 
								  "cROC.sp" = "Conditional ROC curve - semiparametric")

	cat("\nCall:\n", paste(deparse(x$call), sep = "\n", collapse = "\n"), "\n", sep = "")
	cat(paste0("\nApproach: ", method))
	cat("\n----------------------------------------------------------\n")

	invisible(x)   
}

Try the ROCnReg package in your browser

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

ROCnReg documentation built on March 31, 2023, 5:42 p.m.