Fits a generalized linear model using standard maximum likelihood estimation.
fit_glm(formula, data, family = gaussian, ...)
An object of class formula
with a symbolic description
of the model to be fitted.
A data.frame
containing the variables in the model.
A description of the error distribution and link function.
See stats::family
for details.
Additional parameters passed to stats::glm
.
A list containing two data frames:
metrics
- Goodness of fit measures including R-squared
coefficients
- Fitted coefficients with standard errors and p-values