Constructs the model frame using the same conventions as [stats::glm()]. Factors, contrasts, offsets, missing observations, and prediction terms are retained for subsequent inference and prediction.

# S3 method for class 'formula'
fastglm(
  x,
  data,
  family = gaussian(),
  subset,
  na.action,
  weights,
  offset,
  contrasts = NULL,
  method = 0L,
  tol = 1e-08,
  maxit = 100L,
  firth = FALSE,
  ...
)

Arguments

x

a model formula.

data, subset, na.action, weights, offset, contrasts

See [stats::glm()].

family

a GLM family.

method

decomposition number or name; `"auto"` tries Cholesky and falls back to pivoted QR for a singular or ill-conditioned dense design.

tol, maxit

convergence tolerance and iteration limit.

firth

use mean bias reduction.

...

additional arguments to [stats::glm()].

Value

A fitted model inheriting from `fastglmFit`, `glm`, and `lm`.