This folder contains the scripts to run analysis for Stochastic choice drives variability in patch foraging decisions across species.
- Le Heron et al. (2020): field-human data
- Contreras-Huerta et al. (2022): berry-human data
- Kane et al. (2019): rat data
data/
: All data required to run the models and generate the figures from the paperfigs/
: All scripts to generate the figures and run relevant statisticsmodels/
: All scripts to calculate expected leaving times and variability, and model fitting and simulation scriptsstats/
: R script to run linear mixed effects models (Figure 1 and 5), and JASP HTML output for Bayes factors (paired comparisons)
- MATLAB (2023b): Model code and figure generation
- R: Linear mixed models (session info in
stats/
folder) - JASP: Bayes factors for paired comparisons
For questions, contact: exs165@bham.ac.uk\