Provides improved output for displaying the fitted model using
the custom my_lm()
function.
Usage
# S3 method for class 'my_lm'
print(x, ...)
Examples
model = my_lm(mpg ~ disp, data = mtcars)
# Explicit call of the print function
print(model)
#> Call:
#> my_lm.formula(formula = mpg ~ disp, data = mtcars)
#>
#> Coefficients:
#> (Intercept) disp
#> 29.59985476 -0.04121512
# Implicit call of the print function
model
#> Call:
#> my_lm.formula(formula = mpg ~ disp, data = mtcars)
#>
#> Coefficients:
#> (Intercept) disp
#> 29.59985476 -0.04121512