R/print.SGL.R

Defines functions print.SGL

Documented in print.SGL

print.SGL = function(x, digits = max(3, getOption("digits") - 3), ...){
  num.nonzero <- apply(x$beta,2, function(z){sum(z != 0)})
  cat("\n regression type: ", x$type, "\n\n")
  print(cbind(lambdas = x$lambdas, num.nonzero = num.nonzero))
}

Try the SGL package in your browser

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

SGL documentation built on Sept. 28, 2019, 1:03 a.m.