Family function for Negative Binomial GLMs

DESCRIPTION:

Specifies the information required to fit a Negative Binomial generalized linear model, with known theta parameter, using glm() .

USAGE:

negative.binomial(theta = stop("theta must be specified"), link = "log")

REQUIRED ARGUMENTS:

theta
The known value of the additional parameter, theta.

OPTIONAL ARGUMENTS:

link
The link function. Currently must be one of log, sqrt or identity.

VALUE:

A list of functions and expressions needed by glm() to fit a Negative Binomial generalized linear model.

SEE ALSO:

, ,

EXAMPLES:

# Fitting a Negative Binomial model to the quine data
#   with theta=2 assumed known.
#
quine.nb <- glm(Days ~ .^4, family = negative.binomial(2), data = quine)