R/coef_linreg.R

Defines functions coef.linreg

Documented in coef.linreg

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

# s3 method

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