print.cv.rgam {relgam}R Documentation

Print a cross-validated rgam object

Description

Print a summary of the results of cross-validation for a RGAM model.

Usage

## S3 method for class 'cv.rgam'
print(x, digits = max(3, getOption("digits") - 3), ...)

Arguments

x

Fitted rgam object.

digits

Significant digits in printout.

...

Additional print arguments.

Details

The call that produced the object x is printed, followed by some information on the performance for lambda.min and lambda.1se.

See Also

cv.rgam, print.rgam.

Examples

set.seed(1)
n <- 100; p <- 20
x <- matrix(rnorm(n * p), n, p)
beta <- matrix(c(rep(2, 5), rep(0, 15)), ncol = 1)
y <- x %*% beta + rnorm(n)
cvfit <- cv.rgam(x, y)
print(cvfit)


[Package relgam version 1.0 Index]