View source: R/negbin_helpers.R
| negbin_family | R Documentation |
Creates a family-like object for NB2 regression. The link is log, the
variance function is V(\mu) = \mu + \mu^2/\theta, and the
dispersion stored by lgspline (sigmasq_tilde) is the shape
parameter \theta.
negbin_family()
The NB2 model has a nuisance shape parameter \theta analogous
to the Weibull scale parameter. It is estimated jointly with
\boldsymbol{\beta} and its uncertainty is propagated via the
Schur complement correction.
A list with family components used by lgspline.
fam <- negbin_family()
fam$family
fam$link
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.