[R] Could someone email me with the code for glm.nb ?

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Mar 28 14:21:12 CEST 2004


On Sun, 28 Mar 2004 J.Brainard at uea.ac.uk wrote:

> Hi -- subject says all.  I just want the code for that function,
> which I guess was in Venables and Ripley as early as 1994.

Yes, for S: that version does not work in R.

> Well, and for any of the sub-functions that glm.nb calls.  I
> can't install the entire MASS library.

If you are using R, you do not need to.  It comes with MASS installed.
If you are using S-PLUS, you have asked in the wrong place for the wrong 
version ....

Actually you need a lot more than the code you asked for, for example the 
print and anova methods.

> If the code for just glm.nb (again, don't want to touch the MASS 
> library, last time I tried to install it was a complete nightmare and
> fiasco) 

Perhaps you need to invest in some basic computer help or training?  
Especially if you somehow managed to install R without it.

> is somewhere on a webpage or ftp site where I could copy it, 
> pls.  just let me know where?

The source code for the MASS *package* for R is on CRAN in the VR bundle, 
and is part of a standard R distribution.


Readers: please do not email him the code, anyone: the package does have a
licence and should not be split up.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list