glmmADMB

The glmmADMB package, built on the open-source AD Model Builder platform, is an R package for fitting generalized linear mixed models (GLMMs).

Its capabilities include:

In order to use glmmADMB effectively you should already be reasonably familiar with GLMMs, which in turn requires familiarity with (i) generalized linear models (e.g. the special cases of logistic, binomial, and Poisson regression) and (ii) 'modern' mixed models (those working via maximization of the marginal likelihood rather than by manipulating sums of squares).

Please visit the following webpages for more information about the glmmADMB package (please note the latter is somewhat out of date, although it may still contain useful information):

Installation

  1. First try
    install.packages("glmmADMB", repos="http://r-forge.r-project.org")
    
  2. If this fails (because you don't have the very latest version of R, or because R-forge is having a bad day), try
    install.packages("glmmADMB", repos="http://r-forge.r-project.org",type="source")
  3. If this fails, you may have an internet connection problem. Go to the R-forge packages page for the glmmADMB project and download the source package (search for the link labeled "Package source (.tar.gz)") to your computer. Put this file (which will be called glmmADMB_xxxx.tar.gz, where xxxx is the version number) in your R working directory and try
    install.packages("glmmADMB_xxxx.tar.gz",repos=NULL, type="source")
    
  4. If the most recent build of glmmADMB is messed up (usually the maintainers' fault), you may be able to find/install a fairly recent version via
    install.packages("glmmADMB", repos="http://www.math.mcmaster.ca/bolker/R",type="source")
    
    or by navigating to http://www.math.mcmaster.ca/bolker/R/src/contrib and downloading the appropriate file, and following step #3 above.
  5. You can use the following helper function to see which versions of glmmADMB are available at a given repository:
    favail <- function(repos="r-forge.r-project.org",
                       pkg="glmmADMB",
                       ...) {
        hdr <- "http://"
        if (!substr(repos,1,8)==hdr) repos <- paste(hdr,repos,sep="")
        a <- available.packages(contriburl=contrib.url(repos),...)
        if (length(grep(pkg,rownames(a)))==0)
            stop(sprintf("%s unavailable at repos %s",pkg,repos))
        a[pkg,"Version"]
    }
    
    You can use type="source" if you want to check for source packages rather than for the binaries for your OS. For example:
    favail()              ## r-forge, automatic build (default)
    favail(type="source") ## r-forge, source (the same, for Linux)
    favail("glmmadmb.r-forge.r-project.org/repos")  ## r-forge, alternative location
    
  6. If all else fails, contact the package maintainers.
  7. Note that recent versions of glmmADMB (>=0.7) require the R2admb package as well; under normal circumstances this should be installed automatically when you install glmmADMB, but if you run into trouble you should try solutions similar to those listed above.
  8. At present the binaries included in the glmmADMB will not run on MacOS 10.5 (Leopard) or earlier. If you encounter this problem, your choices are:

Additional documentation

Note on new versions

New versions of glmmADMB (>0.6.4) have the following major changes:

The new release is somewhat slower (for the time being) than older (pre-0.5.2) versions: if you have a desperate need for a copy of an old version, you can download a source version and follow alternative #3 from the installation instructions above.