R/coefficient.R

Defines functions coef.linreg

Documented in coef.linreg

#' coef S3 method
#' @description S3 method for objects of class linreg providing the coefficients of the linear regression
#' @param object An object of class linreg
#' @param ... other arguments
#' @return coefficients of linear regression
#' @name coef.linreg
#' @export
coef.linreg <- function(object, ...){
  return(object$regression_coefficient)
}
Marbr987/bonus_lab documentation built on Dec. 17, 2021, 2:19 a.m.