Introduction to demographic (capture-recapture) models in Nimble
Install Nimble
following these guidelines. Then run the
following code in R
. If that runs without error, you’re all
set.
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.