R/print.summary.HDBRR.R

Defines functions print.summary.HDBRR

Documented in print.summary.HDBRR

#' @rdname print
#' @export

print.summary.HDBRR<- function(x, ...){
  if(!inherits(x, "summary.HDBRR")) stop("This function only works for objects of class 'HDBRR'\n");
  model <- x$call
  summary <- x$summary
  lambda <- x$lambda
  edf <- x$edf
  cat("\nCall:\n", paste(deparse(model), sep = "\n", collapse = "\n"),
      "\n\n", sep = "")
  cat("\nCoefficients:\n")
  print(summary)
  cat("-----\n")
  cat("Signif. codes: 10 '***' 6 '**' 2 '*' 0 ' ' \n\n")
  cat("\nRidge parameter:", lambda)
  cat("\nEffective degrees of freedom:", edf)
}

Try the HDBRR package in your browser

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

HDBRR documentation built on Oct. 6, 2022, 1:05 a.m.