Coder Social home page Coder Social logo

tres_ipm's Introduction

Demographic drivers of collapse of an island population of Tree Swallows

Repository for Data/Model/Analysis/Visualization Code

Taylor, L. U., B. K. Woodworth, B. K. Sandercock, and N. T. Wheelwright. 2018. Demographic drivers of collapse in an island population of Tree Swallows. The Condor 120(4):828–841.

Abstract: Diagnosing causes of population declines requires an understanding of the contributions of demographic vital rates to inter-annual variability and long-term changes in population size. At Kent Island, New Brunswick, Canada, an isolated population of Tree Swallows (Tachycineta bicolor) collapsed between 1987 and 2010, providing a unique opportunity to reconstruct how demographic rates drive population dynamics. We fit an integrated population model to 24 years of population count, reproductive success, and capture-recapture data to generate annual estimates of productivity, juvenile and adult survival, immigration, and the finite rate of population change (λ). The Kent Island population declined from 202 to 12 breeding adults over 24 years, with a geometric mean decline of 11.6% per year. Annual apparent survival of adults averaged 56% across sexes, whereas annual survival and recruitment of juveniles never exceeded 6%. Transient life table response experiments revealed that variation in male and female immigration rates were the major contributors to both overall and inter-annual variation in λ, followed by female and male adult survival. Local recruitment and reproductive rates had little effect on variation in λ. Given broad-scale regional declines in Tree Swallows, our study shows how declines of isolated populations can be driven by reductions in immigration, especially when coupled with variation in adult survival and low local recruitment.

Required Software and Packages

R
JAGS
R Packages (model/analysis/making a beep noise):

Thanks to F. Abadi, M. Kéry, D. Koons, and M. Schaub for robust code examples in their winBUGS/IPM/LTRE work. See works cited in text.

Files

Scripts/ contains R script files.
Data/ contains R object data files
Output/ contains visualization output

Run_TRES.R:

Runs full process, including Init, JAGS Model, LTRE, and Vis Output:

  • ipm (full jagsUI output)
  • out (ipm summary output)
  • gof (PPP goodness-of-fit results)
  • cont_summary (vital rate contributions to overall variance in lambda, LTRE part 1)
  • yearly_cont_summary (vital rate contributions to intervals t to t+1, LTRE part 2)
  • LTREcors_max (vital rate correl matrix (Maximum density r))
  • LTREcors_low (vital rate correl matrix (2.5% posterior quantile))
  • LTREcors_high (vital rate correl matrix (97.5% posterior quantile))
  • LTREcors_P (vital rate correl matrix (P(r>0)))
  • Figures 1-7 in the text (saved to Output/)

Init_TRES.R:

Initialize the data for TRES IPM, pulling from R objects stored in Data/. Also includes code used to draw from original datasets

ipm.TRES.bug:

Contains JAGS model code used in Run_TRES.R jags() call

LTRE_Tres.R:

Run life table response experiments (LTREs) to decompose contributions of vital rates to overall variance or (t to t+1) interval differences in lambda Output:

  • cont_summary (vital rate contributions to overall variance in lambda, LTRE part 1)
  • yearly_cont_summary (vital rate contributions to intervals t to t+1, LTRE part 2)
  • LTREcors_max (vital rate correl matrix (Maximum density r))
  • LTREcors_low (vital rate correl matrix (2.5% posterior quantile))
  • LTREcors_high (vital rate correl matrix (97.5% posterior quantile))
  • LTREcors_P (vital rate correl matrix (P(r>0)))

Vis_TRES.R:

Calculates simple vitalrate~lambda correlations and goodness-of-fit results. Draws and saves Figures 1-8 from the text Output:

  • gof (PPP goodness-of-fit results)
  • Figures 1-7 in the text (saved to Output/)

tres_ipm's People

Contributors

ltaylor2 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.