R/coef_ridgereg.R

Defines functions coef.ridgereg

Documented in coef.ridgereg

#' @title Get Ridge Regression Coefficients
#' @description An S3 function to return coefficients from a \code{ridgereg} object
#' @param object an object of class \code{ridgereg}
#' @param ... additional arguments
#' @return a vector containing the regression coefficients
#' @export

# s3 method

coef.ridgereg <- function(object, ...) {object$coefficients}
dsn00b/linear_regression documentation built on Nov. 9, 2021, 11:39 p.m.