powered by
Print a summary of the results of cross-validation for a RGAM model.
# S3 method for cv.rgam print(x, digits = max(3, getOption("digits") - 3), ...)
Fitted rgam object.
rgam
Significant digits in printout.
Additional print arguments.
The call that produced the object x is printed, followed by some information on the performance for lambda.min and lambda.1se.
lambda.min
lambda.1se
cv.rgam, print.rgam.
cv.rgam
print.rgam
# 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