fitNB2 | R Documentation |
Internal fitting function for NB2 regression models. Used for fitting the
starting values of the one-step ML estimators in walsNB
. Only
works with log-link so far, no other links tested.
fitNB2(X, Y, family, control = controlNB())
X |
Design matrix. |
Y |
Count response vector. |
family |
Object of class |
control |
List of parameters for controlling the optimization process.
Use |
The available parameters for controlling the optimization are documented in
controlNB
.
A list with the following elements
coefficients |
fitted coefficients from NB2 regression |
theta |
fitted dispersion parameter from NB2 regression |
convergence |
0 indicates successful completion. All error codes except
for
|
ll |
log-likelihood of fitted NB2 regression model |
message |
If |
start |
If |
controlNB, negbinWALS, glm.nb, optim.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.