R/coef.R

Defines functions coef.linreg

Documented in coef.linreg

#' Coefficeients of the estimated regression model
#'
#' @param object is a linreg object
#' @param ... Extra stuff
#' @return Returns the estimated coefficients of the fitted linear model
#' @export
#'
#' @examples
#' model <- linreg(Sepal.Length ~ Species, data = iris)
#' coef(model)
coef.linreg <- function(object, ...){


  return(object[["beta"]])

}
linuskage2021/lab4Rpackage documentation built on Dec. 21, 2021, 10:51 a.m.