negative.binomial
From MASS v7.347
by Brian Ripley
Specifies the information required to fit a Negative Binomial generalized
linear model, with known theta
parameter, using glm()
.
 Keywords
 models, regression
Usage
negative.binomial(theta = stop("'theta' must be specified"), link = "log")
Arguments
 theta

The known value of the additional parameter,
theta
.  link

The link function, as a character string, name or oneelement
character vector specifying one of
log
,sqrt
oridentity
, or an object of class"linkglm"
.
Value
An object of class "family"
, a list of functions and
expressions needed by glm()
to fit a Negative Binomial
generalized linear model.
References
Venables, W. N. and Ripley, B. D. (1999) Modern Applied Statistics with SPLUS. Third Edition. Springer.
See Also
Examples
library(MASS)
# Fitting a Negative Binomial model to the quine data
# with theta = 2 assumed known.
#
glm(Days ~ .^4, family = negative.binomial(2), data = quine)
Community examples
Looks like there are no examples yet.