Linear Model
Fits a linear regression model using Ordinary Least Squares (OLS).
data (DataFrame): The data to
use.
formula (Formula): The model
formula (e.g., mpg ~ wt + hp).
A model object containing coefficients, residuals, and statistics.
model = lm(mtcars, mpg ~ wt + hp)
summary(model)