Griffith, D. M., J. A. Veech, and C. J. Marsh. “Cooccur: Probabilistic Species Co-Occurrence Analysis in R”. Journal of Statistical Software, Code Snippets, vol. 69, no. 2, Feb. 2016, pp. 1-17, doi:10.18637/jss.v069.c02.