R/print.gnsc.R

Defines functions print.gnsc

Documented in print.gnsc

print.gnsc <-
function(x, ...){
    cat("Group Nearest Shrunken Centroids Output\n")
    cat("Number of Threshold Values:",x$nlambda, "\n")
    out = cbind(x$lambda, x$nonzero, x$errors)
    colnames(out) = c("threshold", " nonzero", "errors")
    print(out)
    #cat("Threshold Values:", x$lambda, "\n")
    #cat("Number of Nonzero Variable Groups:", x$nonzero, "\n")
    #cat("estimated errors:", x$errors,  "\n")
    cat("predicted sample classes: \n")
    print(x$yhat)
}

Try the smart package in your browser

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

smart documentation built on May 29, 2017, 8:58 p.m.