- formula
a numeric matrix, `dgCMatrix`, [fastglm_source()], or a
[Formula::Formula] of the form `y ~ x1 + x2 | z1 + z2`
where the right-hand side after `|` specifies the zero-model design.
If `|` is absent, the same RHS is used for both parts.
- data
optional data frame / environment from which to draw model
matrix variables.
- subset, na.action
standard model-frame arguments.
- weights
optional non-negative prior weights.
- offset
optional vector or matrix. If a 2-column matrix, columns
are taken as `(count_offset, zero_offset)`.
- dist
count component distribution: `"poisson"` or `"negbin"`.
- zero.dist
zero/non-zero distribution; only `"binomial"` is
currently supported.
- link
character, link for the zero/non-zero binomial. One of
`"logit"` (default), `"probit"`, `"cloglog"`, `"log"`.
- init.theta
optional positive scalar starting value for the NB
dispersion. Formula fits use a moment initializer by default; matrix
and source fits start at one after fitting a truncated Poisson model.
- tol, maxit
IRLS-loop convergence tolerance and iteration cap.
- outer.tol, outer.maxit
`(beta, theta)` outer-loop convergence
tolerance and iteration cap (only used when `dist = "negbin"`).
- theta.tol, theta.maxit
tolerance and iteration cap for the inner
theta update (only used when `dist = "negbin"`).
- model
logical; keep the model frame on the result.
- y, x
logical; retain the response and, for formula fits, design
matrices. Matrix fits retain their supplied designs for prediction;
source fits retain the reader instead of observation-level data.
- response
nonnegative integer response for a matrix design. A source
supplies its response in each block; the existing `y` argument controls
whether a fitted model retains its response.
- z
optional binary-component matrix for matrix inputs; defaults to
the count design. Source blocks can supply `Z` separately from `X`.
- method
decomposition for matrix/source component GLMs, as in [fastglm()].
- block.size
maximum number of matrix rows processed together for the
truncated count component. A source determines its own block sizes.