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}
shashiniyer/linear_regression documentation built on Dec. 23, 2021, 1:21 a.m.