| negbin_helpers | R Documentation |
Functions for fitting negative binomial (NB2) regression models within the lgspline framework. Analogous to the Weibull AFT and Cox PH helpers, these provide the log-likelihood, score, information, and all interface functions needed by lgspline's unconstrained fitting, penalty tuning, and inference machinery.
The parameterization follows NB2: Y \sim \mathrm{NB}(\mu, \theta)
with \mathrm{Var}(Y) = \mu + \mu^2/\theta, where \theta > 0
is the shape (size) parameter. The canonical link is log:
\eta = \log\mu. The dispersion stored in
lgspline$sigmasq_tilde is \theta itself, not
1/\theta.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.