#' 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.