Supplement 1. R code for the examples.
Perry de Valpine, Alexandra Harmon‐Threatt · Figshare · 2016
File List examples.R (md5: 0a15b5ce3d7c7af161da00a2c911a613) polyaCode.R (md5: e8679717d4692ec456e6becbd03027ed) estimateModels.R (md5: e8679717d4692ec456e6becbd03027ed) bootstrapCode.R (md5: 9bc8cdbfba36a18d3e572855a44cb541) Description examples.R contains R code to execute the squirrel and pheasant examples. polyaCode.R contains R code for calculations of the Dirichlet-multinomial distribution and related functions. estimateModels.R contains R code for estimating various models that include Dirichlet-multinomial error distributions by maximum likelihood estimation. bootstrapCode.R contains R code for bootstrapping comparisons of pairs of models.