File: print.mars.R

package info (click to toggle)
r-cran-caret 7.0-1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,036 kB
  • sloc: ansic: 210; sh: 10; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 489 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#' @export
print.bmars <- function (x, ...)
{
    cat("\nCall:\n", deparse(x$call), "\n\n", sep = "")
    if(!is.null(x$x))cat("Data:\n   # variables:\t", dim(x$x)[2], "\n   # samples:\t", dim(x$x)[1], "\n")
    cat(
      "\nModel:",
      "\n   B:        \t", x$B,
      "\n   degree:   \t", x$fit[[1]]$degree,
      "\n   nk:       \t", x$fit[[1]]$nk,
      "\n   penalty:  \t", x$fit[[1]]$penalty,
      "\n   threshold:\t", x$fit[[1]]$thresh, "\n")

    cat("\n")
    invisible(x)
}