R/predict.cv.R

Defines functions coef.cv.grpreg predict.cv.grpreg

Documented in coef.cv.grpreg predict.cv.grpreg

predict.cv.grpreg <- function(object, X, lambda=object$lambda.min, which=object$min, type=c("link", "response", "class", "coefficients", "vars", "groups", "nvars", "ngroups", "norm"), ...) {
  type <- match.arg(type)
  predict.grpreg(object$fit, X=X, lambda=lambda, which=which, type=type, ...)
}
coef.cv.grpreg <- function(object, lambda=object$lambda.min, which=object$min, ...) {
  coef.grpreg(object$fit, lambda=lambda, which=which, ...)
}

Try the grpreg package in your browser

Any scripts or data that you put into this service are public.

grpreg documentation built on Sept. 27, 2018, 5:03 p.m.