WinBUGS for Population Ecologists: Bayesian Modeling Using Markov Chain Monte Carlo Methods
The computer package WinBUGS is introduced. We first give a brief introduction to Bayesian theory and its implementation using Markov chain Monte Carlo (MCMC) algorithms. We then present three case studies showing how WinBUGS can be used when classical theory is difficult to implement. The first example uses data on white storks from Baden Württemberg, Germany, to demonstrate the use of mark-recapture models to estimate survival, and also how to cope with unexplained variance through random effects. Recent advances in methodology and also the WinBUGS software allow us to introduce (i) a flexible way of incorporating covariates using spline smoothing and (ii) a method to deal with missing values in covariates. The second example shows how to estimate population density while accounting for detectability, using distance sampling methods applied to a test dataset collected on a known population of wooden stakes. Finally, the third case study involves the use of state-space models of wildlife population dynamics to make inferences about density dependence in a North American duck species. Reversible Jump MCMC is used to calculate the probability of various candidate models. For all examples, data and WinBUGS code are provided.
KeywordsBayesian statistics Density dependence Distance sampling External covariates Hierarchical modeling Line transect Mark-recapture Random effects Reversible jump MCMC Spline smoothing State-space model Survival estimation
- Bairlein F (1991) Population studies of white storks ciconia ciconia in Europe, with reference to the western population. In: Perrins C, Lebreton J-D, Hirons G (eds), Bird Population Studies: Relevance to Conservation and Management, pages 207–229. Oxford University Press. Oxford.Google Scholar
- Brooks SP, King R, Morgan BJT (2004) A Bayesian approach to combining animal abundance and demographic data. Animal Biodiversity and Conservation 27:515–529.Google Scholar
- Brooks SP, Gimenez O, King R (2005) Bayesian methods for population ecology – workshop codes. National Centre for Statistical Ecology Software Library. [http://www.ncse.org.uk/software.html].
- Buckland ST, Anderson DR, Burnham KP, Laake JL, Borchers DL, Thomas L Eds. (2004a) Advanced Distance Sampling. Oxford University Press, Oxford.Google Scholar
- Buckland ST, Newman KB, Thomas L, Koesters NB (2004b) State-space models for the dynamics of wild animal populations. Ecological Modelling 171:157–175.Google Scholar
- Choquet R, Reboulet A-M, Pradel R, Gimenez O, Lebreton J-D (2005) M-SURGE: new software specifically designed for multistate capture–recapture models. Animal Biodiversity and Conservation, 27: 207–215. Available from http://www.cefe.cnrs.fr/biom/logiciels.htm/
- Congdon P (2006) Bayesian Statistical Modelling, 2 nd edition. John Wiley, New York.Google Scholar
- Crainiceanu CM, Ruppert D, Wand MP (2005) Bayesian analysis for penalized spline regression using WinBUGS. Journal of Statistical Software 14:1–24.Google Scholar
- de Valpine P (2002) Review of methods for fitting time-series models with process and observation error, and likelihood calculations for nonlinear, non-Gaussian state-space models. Bulletin of Marine Science 70:455–471.Google Scholar
- de Valpine P (2002) Review of methods for fitting time-series models with process and observation error and likelihood calculations for nonlinear, non-Gaussian state-space models. Bulletin of Marine Science 70:455–471.Google Scholar
- Fournier D (2001) An introduction to AD MODEL BUILDER Version 6.0.2 for use in nonlinear modeling and statistics. Available from http://otter-rsch.com/admodel.htm.
- Gilks W, Richardson S, Spiegelhalter D (1996) Markov chain Monte Carlo in practice. Chapman & Hall, London.Google Scholar
- Gimenez O, Crainiceanu C, Barbraud C, Jenouvrier S, Morgan BJT (2006a) Semiparametric regression in capture–recapture modelling. Biometrics 62:691–698.Google Scholar
- Gimenez O, Covas R, Brown CR, Anderson MD, Bomberger Brown M, Lenormand T (2006b) Nonparametric estimation of natural selection on a quantitative trait using mark-recapture data. Evolution 60:460–466.Google Scholar
- Gimenez O, Barbraud C (2008) The efficient semiparametric regression modelling of capture–recapture data: assessing the impact of climate on survival of two Antarctic seabird species. In: Thomson DL, Cooch EG, Conroy MJ (eds.) Modeling Demographic Processes in Marked Populations. Environmental and Ecological Statistics, Springer, New York.Google Scholar
- Gimenez BJT, Morgan O, Brooks SP (2008) Weak identifiability in models for mark-recapture-recovery data. In: Thomson DL, Cooch EG, Conroy MJ (eds.) Modeling Demographic Processes in Marked Populations. Environmental and Ecological Statistics, Springer, New York.Google Scholar
- Grosbois V, Gimenez O, Gaillard J-M, Pradel R, Barbraud C, Clobert J, Møller AP, Weimerskirch H (in revision) Assessing the impact of climate variation on survival in vertebrate populations. Biological Reviews.Google Scholar
- Grosbois V, Harris MP, Anker-Nilssen T, McCleery RH, Shaw DN, Morgan BJT, Gimenez O (in revision) Spatial modelling of survival using capture-recapture data. Ecology.Google Scholar
- Harley SJ, Myers RA, Field CA (2004) Hierarchical models improve abundance estimates: spawning biomass of hoki in Cook Strait, New Zealand. Ecological Applications 14: 1479–1494.Google Scholar
- Ihaka SP, Gentleman EA (1996) R: a language for data analysis and graphics. Journal of Computational and Graphical Statistics 5:299–314.Google Scholar
- Jamieson LE (2004) Bayesian model discrimination with application to population ecology and epidemiology. PhD Thesis, University of Cambridge.Google Scholar
- Jamieson LE, Brooks SP (2004) Density dependence in North American ducks. Animal Biodiversity and Conservation 27:113–128.Google Scholar
- King R, Brooks SP (2002a) Bayesian model discrimination for multiple strata capture–recapture data. Biometrika 89:785–806.Google Scholar
- King R, Brooks SP (2002b) Model selection for integrated recovery/recapture data. Biometrics 58:841–851.Google Scholar
- King R, Brooks SP (2008) On the Bayesian estimation of a closed population size in the presence of heterogeneity and model uncertainty. Biometrics, In press.Google Scholar
- Lebreton J-D (2008) Assessing density-dependence: where are we left? In: Thomson DL, Cooch EG, Conroy MJ (eds.) Modeling Demographic Processes in Marked Populations. Environmental and Ecological Statistics, Springer, New York.Google Scholar
- Lunn DJ (2006) WinBUGS ‘jump’ interface: beta-release user manual. Technical report dated February 14th 2006, School of Medicine, Imperial College London, UK.Google Scholar
- Marques TA, Thomas L, Fancy SG, Buckland ST (2007) Improving estimates of bird density using multiple covariate distance sampling. The Auk 124:1229–1243.Google Scholar
- Martin TG, Kuhnert PM, Mengessen K, Possingham HP (2005a) The power of expert opinion in ecological models using Bayesian methods: Impact of grazing on birds. Ecological Applications 15:266–280.Google Scholar
- Martin TG, Wintle BA, Rhodes JR, Kuhnert PM, Field SA, Low-Choy SJ, Tyre AJ, Possingham HP (2005b) Zero tolerance ecology: improving ecological inference by modelling the source of zero observations. Ecology Letters 8:1235–1246.Google Scholar
- Maunder MN, Schnute JT, Ianelli JN (in press) Computers in fisheries population dynamics. In: Megrey B, Moksness E (eds) Computers in Fisheries Research. Kluwer Academic Publishers, Dordrecht.Google Scholar
- Maunder MN, Skaug HJ, Hoyle SD (2008) Comparison of estimators for mark-recapture models: random effects, hierarchical Bayes, and AD Model Builder. In: Thomson DL, Cooch EG, Conroy MJ (eds.) Modeling Demographic Processes in Marked Populations. Environmental and Ecological Statistics, Springer, New York.Google Scholar
- Ntzoufras I (2002) Gibbs variable selection using BUGS. Journal of Statistical Software, 7(7).Google Scholar
- Plummer M, Best NG, Cowles K, Vines K (2004) CODA: output analysis and diagnostics for MCMC. R package version 0.9-1, URL http://www-fis.iarc.fr/coda/.
- R Development Core Team (2007) R: a language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. ISBN 3-900051-07-0, URL http://www.R-project.org.
- Royle JA (2008) Modeling individual effects in the Cormack–Jolly–Seber model: a state-space formulation. Biometrics, In press.Google Scholar
- Smith BJ (2004) BOA: Bayesian Output Analysis Program (BOA) for MCMC. R package version 1.1.2-1, URL http://www.public-health.uiowa.edu/boa.
- Spiegelhalter D, Thomas A, Best N, Lunn D (2003) WinBUGS user manual. version 1.4 (http://www.mrc-bsu.cam.ac.uk/bugs.). Technical report, Medical Research Council Biostatistics Unit. Cambridge.
- Sturtz S, Ligges U, Gelman A (2005) R2WinBUGS: a package for running WinBUGS from R. Journal of Statistical Software 12:1–16.Google Scholar
- US Fish and Wildlife Service (2003) Waterfowl Population Status, 2003, US Department of the Interior, Washington, DC.Google Scholar
- White GC, Burnham KP (1999) Program MARK: survival estimation from populations of marked animals. Bird Study 46:120–129. Available from http://www.cnr.colostate.edu/gwhite/software.html.
- Williams BK, Nichols JD, Conroy MJ (2002) Analysis and Management of Animal Populations. Academic Press, New York.Google Scholar