R/coef.cv.lrome.R

Defines functions coef.cv.lrome

Documented in coef.cv.lrome

coef.cv.lrome <- function(object, 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")
    coef(object$lrome.fit, s = lambda, ...)
} 
emeryyi/rome documentation built on May 6, 2019, 9:53 a.m.