R/print.HOF.list.r

#' @export
"print.HOF.list" <-  function (
		x,
		test = 'AICc',
		selectMethod = 'bootselect.lower',
		...) {
	if(selectMethod == 'bootselect' & is.null(x[[1]]$bootstrapmodels)) {
		message('Bootstrap results missing. Using selectMethod "IC.weight" instead.\n')
		selectMethod <- 'IC.weight'
	}
    cat("Deviances:\n")
    sapply(sapply(x, function(m) m$models), '[[', 'deviance')
    printCoefmat(sapply(x, function(x) deviance(x)), na.print="", has.Pvalue=FALSE, ...)
    cat(paste("\nSuggested best models (",test, ", ", selectMethod, "):", sep=''))
    tmp <- sapply(x, pick.model, test=test, selectMethod = selectMethod, silent = TRUE, ...)
    names(tmp) <- names(x)
    cat('\n')
    print(noquote(tmp))
#      }
    invisible(x)
}

Try the eHOF package in your browser

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

eHOF documentation built on April 3, 2025, 8:59 p.m.