R/predict.cv.lrome.R

Defines functions predict.cv.lrome

Documented in predict.cv.lrome

predict.cv.lrome <- function(object, newx, s = c("lambda.1se", 
    "lambda.min"), ...) {
    if (is.numeric(s)) 
        lambda <- s else if (is.character(s)) {
        s <- match.arg(s)
        lambda <- object[[s]]
    } else stop("Invalid form for s")
    predict(object$lrome.fit, newx, s = lambda, ...)
} 
emeryyi/rome documentation built on May 6, 2019, 9:53 a.m.