library(mvabund) ## Load a dataset from the mvabund package
data(spider)
y <- spider$abun
n <- nrow(y); p <- ncol(y);
spider.fit.nb <- boral(y, family = "negative.binomial", num.lv = 2,
site.eff = TRUE, save.model = TRUE, calc.ics = TRUE)
spider.fit.nb$ics ## DIC returned as one of several information criteria.
Run the code above in your browser using DataLab