R/pred.R

Defines functions pred.linreg

Documented in pred.linreg

#' pred S3 method
#' @description S3 method for objects of class linreg providing the fitted values of the linear regression
#' @param object An object of class linreg
#' @return vector containing fitted values
#' @name pred.linreg
#' @export
pred.linreg <- function(object){
  return(object$fitted_values)
}
Marbr987/lab4 documentation built on Dec. 17, 2021, 2:20 a.m.