print.cv.sprinter: Print the cross validation information of cv.sprinter

Description Usage Arguments Details See Also Examples

View source: R/print.cv.sprinter.R

Description

Print a summary of the cross-validation information for running cv.sprinter.

Usage

1
2
## S3 method for class 'cv.sprinter'
print(fit, digits = max(3, getOption("digits") - 3), ...)

Arguments

fit

A fitted cv.sprinter object.

digits

Significant digits in printout.

Details

This function takes in a cv.sprinter object and produces summary of the cross-validation informationabout the tuning parameters (in Step 3) selected by lambda.min and lambda.1se. Adopted from the function print.cv.rgam from package relgam by Kenneth Tay and Robert Tibshirani.

See Also

cv.sprinter, print.printer.

Examples

1
2
3
4
5
6
7
8
set.seed(123)
n <- 100
p <- 100
x <- matrix(rnorm(n * p), n, p)
y <- x[, 1] - 2 * x[, 2] + 3 * x[, 1] * x[, 3] - 4 * x[, 4] * x[, 5] + rnorm(n)

fit.cv <- cv.sprinter(x = x, y = y)
print(fit.cv)

hugogogo/sprintr documentation built on Dec. 14, 2021, 6:07 p.m.