A formula-interface linear (gaussian) or logistic (binomial)
regression returning a model object that exposes coefficients,
variance-covariance, fitted values, residuals, response and predictor
metadata, convergence information, and supports prediction with
confidence / prediction intervals and default plot / summary
methods.
Arguments
- formula
A model formula.
- data
A data.frame.
- family
"gaussian" (linear) or "binomial" (logistic).
- center, scale
Logical; center predictors to zero mean / scale to unit SD before fitting (the fit is back-transformed so coefficients remain on the original scale). Documented and tested (RE2.3).
- na_predictor
How to handle missing predictor values: "omit" (drop incomplete predictor rows) or "fail" (error). Controlled separately from the response (RE2.2).
- na_response
How to handle missing response values: "omit" or "keep" (retain rows with missing response so fitted values can still be generated for their predictors) (RE2.2).
- nofit
If TRUE, return an unfitted model specification (RE4.1).
