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

Description Usage Arguments Details See Also Examples

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

Description

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

Usage

1
2
## 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

1
2
3
4
5
6
7
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)

relgam documentation built on Jan. 13, 2020, 5:06 p.m.