
mgcv
. It is called by gam()
for data where the error distribution is known to follow the Negative Binomial, but the
value of theta is unknown. Based on glm.nb()
from the MASS library, it calls
gam.fit()
repeatedly while iteratively improving its estimate of
theta, starting from a poisson error model and uses the neg.bin
error family (based again on code from the MASS library).gam
object. See gam
for details.gam
neg.bin
gam.nbut