| niters | R Documentation |
Extracts the number of IRLS iterations performed for a VGLM object.
niters(object, ...)
niters.vlm(object, history = FALSE, ...)
object |
A |
history |
Logical, if |
... |
Currently unused. |
The number of iteratively reweighted least squares (IRLS) iterations needed for convergence (or non-convergence) does say something about the model. Since Fisher scoring has a linear convergence rate in general, it should take no more than 10 iterations, say, for successful convergence. Much more indicates potential problems, e.g., a large disagreement between data and the specified model.
A non-negative integer by default.
If history = TRUE then a matrix.
Step-halving may or may not affect the answer.
vglm,
vglm.control.
fit <- vglm(rpois(9, 2) ~ 1, poissonff, crit = "c")
niters(fit)
niters(fit, history = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.