Coder Social home page Coder Social logo

oliviergimenez / multievent_jags_r Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 1.0 17 KB

Fit multievent capture-recapture models in R (maximum-likelihood), Nimble and JAGS (Bayesian)

R 100.00%
jags multievent-models multistate rstats capture-recapture-models bayesian-inference maximum-likelihood-estimation nimble

multievent_jags_r's Introduction

Fitting multievent models in R, Nimble and JAGS

by Olivier Gimenez

August 12, 2016 and December 19, 2019.

What it does

Here I provide R codes to fit multievent capture-recapture models (Pradel et al. 2005). Multievent models are hidden Markov models that are helpful in lots of situations to analyse capture-recapture data (see this list of applications for example).

I show how to obtain maximum-likelihood estimates using R and Bayesian estimates using Nimble and JAGS. Two examples are considered. First a simple Cormack-Jolly-Seber model is illustrated with the classical Dipper dataset (Pradel 2005; Gimenez et al. 2007). Second, a multistate model with uncertainty in the state assignement is illustrated with a dataset on Sooty shearwaters (Pradel 2005; Gimenez et al. 2012).

What it contains

Cormack-Jolly-Seber example using the Dipper dataset

  • cjs_nimble.R: Bayesian fitting using R and Nimble
  • cjs_jags.R: Bayesian fitting using R and JAGS
  • cjs_R.R: maximum-likelihood fitting using R
  • dipper.txt: the Dipper dataset

Multistate with uncertain state example using the Sooty shearwater dataset

  • uncertainty_nimble.R: Bayesian fitting using R and Nimble
  • uncertainty_jags.R: Bayesian fitting using R and JAGS
  • uncertainty_R.R: maximum-likelihood fitting using R
  • titis2.txt: the Sooty shearwater dataset

References

Gimenez, O., Lebreton, J.-D., Gaillard, J.-M., Choquet, R. and R. Pradel (2012). Estimating demographic parameters using hidden process dynamic models. Theoretical Population Biology 82: 307-316.

Gimenez, O., V. Rossi, R. Choquet, C. Dehais, B. Doris, H. Varella, J.-P. Vila and R. Pradel (2007). State-space modelling of data on marked individuals. Ecological Modelling 206: 431-438.

Pradel, R. (2005). Multievent: an extension of multistate capture–recapture models to uncertain states. Biometrics 61: 442–447.

multievent_jags_r's People

Contributors

oliviergimenez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dochvam

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.