Learn R Programming

relgam (version 1.0)

print.cv.rgam: Print a cross-validated rgam object

Description

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

Usage

# S3 method for 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

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab