Auxiliary function for glm fitting.
Typically only used internally by glm.fit, but may be
used to construct a control argument to either function.
glm.control(epsilon = 1e-8, maxit = 25, trace = FALSE)positive convergence tolerance \(\epsilon\); the iterations converge when \(|dev - dev_{old}|/(|dev| + 0.1) < \epsilon\).
integer giving the maximal number of IWLS iterations.
logical indicating if output should be produced for each iteration.
A list with components named as the arguments.
The control argument of glm is by default passed
to the control argument of glm.fit, which uses
its elements as arguments to glm.control: the latter provides
defaults and sanity checking.
If epsilon is small (less than \(10^{-10}\)) it is
also used as the tolerance for the detection of collinearity in the
least squares solution.
When trace is true, calls to cat produce the
output for each IWLS iteration. Hence, options(digits = *)
can be used to increase the precision, see the example.
Hastie, T. J. and Pregibon, D. (1992) Generalized linear models. Chapter 6 of Statistical Models in S eds J. M. Chambers and T. J. Hastie, Wadsworth & Brooks/Cole.