Materials

Slides

Files

Practice during the workshop will make use of these files. Part 2 data here

Documentation to the samplr package

The samplr package is an R package available on CRAN. With it, you can:

  • use MCMC algorithms
  • use the Autocorrelated Bayesian Sampler model (Zhu et al., 2024)
  • calculate some useful statistics that help with model inference.

The documentation to the samplr package lives here (with some very useful vignettes!). We have also written a manuscript on how to use it and how to fit MCMC models (Castillo et al., 2025).

It is an open source package, meaning that you can look at the source code here.

If you have any feature suggestions or if you find any bugs, please report them here (or send Lucas Castillo an email).

References

Castillo, L., Li, Y.-X., & Sanborn, A. N. (2025). The samplr package: A tool for modeling human cognition with sampling algorithms. https://doi.org/10.31234/osf.io/ax8hm_v2
Zhu, J.-Q., Sundh, J., Spicer, J., Chater, N., & Sanborn, A. N. (2024). The autocorrelated Bayesian sampler: A rational process for probability judgments, estimates, confidence intervals, choices, confidence judgments, and response times. Psychological Review, 131(2), 456–493. https://doi.org/10.1037/rev0000427