[R] MASS glm.nb: Offset fails
jlindsey at alpha.luc.ac.be
Mon Jan 10 14:19:59 CET 2000
> I came to R from GLIM and its glm. My data sets (ecological community data)
> are severely over-dispersed, and so I was delighted to find out that the MASS
> library has glm.nb which is an advancement from the GLIM macros I had used
> (N.E.Breslow, Applied Statistics 33, 38--44; 1984). However, I need to use
> offset, but that failed.
You might like to look at the gnlr function in my gnlm library
(www.luc.ac.be/~jlindsey/rcode.html). It not only does negative
binomial but several other overdispersed count distributions as well
(double Poisson, multiplicative Poisson, gamma count, ...), works with
nonlinear as well as linear regression, and the dispersion parameter
can depend on covariates.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help