A two-day workshop with R
and Nimble
What: This is a workshop on Bayesian inference of animal demography. Hopefully, you will learn about how to infer demographic parameters (e.g. survival, dispersal). Our hope is to provide you with what you need to go your own path. The event is free of charge, and video-recorded.
For whom: This is a workshop for ecologists. No previous experience with Nimble
or Bayesian statistics is assumed, but knowledge of R
is required.
How: Through a combination of lectures and live demonstrations, you will get acquainted with the Bayesian approach, MCMC methods and the R
Nimble
package to fit single-site, multi-site, multi-state and multi-event models to capture-recapture data within the hidden Markov modeling (HMM) framework.
Who: O. Gimenez
When: July 12-13, 2023
Where: València VIBASS
Install Nimble
following these guidelines. Then run the following code in R
. If that runs without error, you’re all set. If not, please get in touch with us.
library(nimble)
code <- nimbleCode({
y ~ dnorm(0,1)
})
model <- nimbleModel(code)
cModel <- compileNimble(model)
Install the following R
packages: tidyverse
, MCMCvis
, here
and nimbleEcology
. You can install them all at once by running the following code in R
:
install.packages(c("tidyverse", "MCMCvis", "here", "nimbleEcology"))
Text and figures are licensed under Creative Commons Attribution CC BY 4.0. Any computer code (R, HTML, CSS, etc.) in slides and worksheets, including in slide and worksheet sources, is also licensed under MIT.
If you see mistakes or want to suggest changes, please create an issue on the source repository.