View source: R/negbin_helpers.R
| info_negbin | R Documentation |
Negative Hessian of the NB2 log-likelihood with respect to
\boldsymbol{\beta} under the log link.
info_negbin(X, y, mu, theta, weights = 1)
X |
Design matrix (N x p). |
mu |
Mean vector. |
theta |
Shape parameter. |
weights |
Observation weights (default 1). |
The expected information under log link is
\mathbf{I} = \mathbf{X}^{\top}\mathbf{W}\mathbf{X}
where W_{ii} = w_i \mu_i \theta / (\theta + \mu_i).
This is the IRLS weight for NB2 with log link.
Symmetric p x p observed information matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.