The /stan
folder in this folder contains Bayesian model specifications
written in the Stan probabalistic programming language. Each file
corresponds to a variation of a model (originally developed in Keller et
al., 2022) that uses environmental DNA (eDNA) data and “traditional”
survey data to jointly estimate parameters. These model variations are
accessed based on the type of input data and/or user-defined input
parameters, including distributional assumptions.
Probability distributions were chosen for the model specifications using the model developed in Keller et al. 2022. These original models use:
joint_model()
(Lahoz-Monfort et al., 2016).joint_model()
.Other variations on this original model specification include:
This folder also contains ‘traditional models’, which can be used to model the traditional survey data in isolation. These models can be used as a comparison with the joint model that adds eDNA survey data to determine if and how the addition of eDNA data affects inference.
The four files in the /stan
folder represent four model variations:
joint_continuous.stan
: joint model with continuous traditional
survey datajoint_count.stan
: joint model with discrete count traditional
survey datatraditional_continuous.stan
: traditional model with continuous
survey datatraditional_count.stan
: traditional model with discrete count
survey dataThe /stan/functions
folder contains helper function for the above
files.
Keller, A.G., Grason, E.W., McDonald, P.S., Ramon-Laca, A., Kelly, R.P. (2022). Tracking an invasion front with environmental DNA. Ecological Applications. 32(4): e2561. https://doi.org/10.1002/eap.2561
Lahoz-Monfort, J., Guillera-Arroita, G., Tingley, R. (2016). Statistical approaches to account for false-positive errors in environmental DNA samples. Molecular Ecology Resources. 16(3): 673-685. https://doi.org/10.1111/1755-0998.12486
Lindén, A., Mäntyniemi, S. (2011). Using the negative binomial distribution to model overdispersion in ecological count data. Ecology. 92(7): 1414-1421. https://doi.org/10.1890/10-1831.1
van Erp, S., Oberski, D.L., Mulder, J. (2019). Shrinkage priors for Bayesian penalized regression. Journal of Mathematical Psychology. 89: 31-50. https://doi.org/10.1016/j.jmp.2018.12.004
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.