Learn R Programming

mgcv (version 0.8-9)

neg.binom: Family function for Negative Binomial GAMs

Description

Specifies the information required to fit a negative binomial generalized additive model, with known or unknown theta parameter, using gam() and gam.nbut(). The code is a minor modification of negative.binomial from library(MASS).

Usage

neg.binom(theta=NA, link="log")

Arguments

theta
The known value of the additional parameter, theta, or NA if this is unknown.
link
The link function. Currently must be one of log, sqrt or identity.

Value

  • A list of functions and expressions needed by gam() to fit a generalised additive mode with Negative Binomial errors.

See Also

gam, gam.nbut