R/resid_linreg.R

Defines functions resid.linreg resid

Documented in resid resid.linreg

#' @title Generic Method for resid()
#' @param object input containing model data
#' @param ... other inputs to the resid function
#' @export
resid <- function(object, ...) UseMethod("resid")

#' @title linreg method for resid()
#' @param object input of the class \code{linreg} containing model data
#' @param ... other inputs to the resid function
#' @export
resid.linreg <- function(object, ...) {
  as.vector(object$Residuals)
}
JS2387/Group8LinearRegressionFJ documentation built on July 20, 2023, 9:24 a.m.