jags-cddm
A JAGS module for the circular diffusion model
Science Score: 57.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 2 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.4%) to scientific vocabulary
Repository
A JAGS module for the circular diffusion model
Basic Info
- Host: GitHub
- Owner: joachimvandekerckhove
- License: other
- Language: NSIS
- Default Branch: main
- Size: 154 KB
Statistics
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
- Releases: 1
Metadata Files
README.md
JAGS-CDDM: Circular Drift Diffusion Model in JAGS
Implements the circular drift diffusion model in JAGS.
Installation
- Clone the repository:
{bash}
git clone https://github.com/joachimvandekerckhove/jags-cddm.git
- Navigate to the cloned directory and execute the installation script:
{bash}
./makedcddm.sh
Usage
In JAGS, load cddm as a module. This exposes two new distributions:
- For the Cartesian parameter set:
{r}
X[1:2,] ~ dcddmcartn(driftx, drifty, bound, nondecision)
- For the polar parameter set:
{r}
X[1:2,] ~ dcddmpolar(driftLength, driftAngle, bound, nondecision)
In both cases, X[1,] is choice in radians and X[2,] is RT in seconds.
Pre-release
This is an untested pre-release. Do not use unless you know what you are doing and know how to evaluate the accuracy of results.
Ongoing work
- Implement and test an efficient and robust sampler [in progress]
- Implement and test the more robust likelihood calculation in Smith, Garrett, and Zhou (2023; Computational Brain & Behavior, 1-13)
- Implement and test integrated trial-to-trial variability as discussed in Zhou, Osth, Lilburn, and Smith (2021; Psychonomic Bulletin & Review, 28, 1112-1130).
Citation
If you use this module, please cite:
Villarreal, M., Chávez, A., Mistry, P. K., Menon, V., Vandekerckhove, J., &
Lee, M. D. (2023, August 8). Bayesian graphical modeling with the circular
drift diffusion model. https://doi.org/10.31234/osf.io/gjnwk
Wabersich, D., & Vandekerckhove, J. (2014). Extending JAGS: A
tutorial on adding custom distributions to JAGS (with a
diffusion model example). Behavior Research Methods, 46, 15-28.
Vagrantfile
If you use Vagrant, the Vagrantfile spawns a VM that installs and tests this module. Currently requires a GitHub account with associated keyfile.
Copyleft
This module is Copyright (C) 2023 Joachim Vandekerckhove joachim@uci.edu and Adriana Chávez De la Peña achavezd@uci.edu
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Owner
- Name: Joachim Vandekerckhove
- Login: joachimvandekerckhove
- Kind: user
- Location: Irvine, CA
- Company: University of California, Irvine
- Website: http://www.cidlab.com/
- Repositories: 3
- Profile: https://github.com/joachimvandekerckhove
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite the article below for the method behind building it."
authors:
- family-names: "Vandekerckhove"
given-names: "Joachim"
orcid: "https://orcid.org/0000-0003-2600-5937"
title: "jags-cddm"
date-released: 2022-08-18
version: 0.0.2
url: "https://github.com/joachimvandekerckhove/jags-cddm"
preferred-citation:
type: article
authors:
- family-names: "Wabersich"
given-names: "Dominik"
- family-names: "Vandekerckhove"
given-names: "Joachim"
orcid: "https://orcid.org/0000-0003-2600-5937"
doi: "10.3758/s13428-013-0369-3"
journal: "Behavior Research Methods"
start: 15
end: 28
title: "Extending JAGS: A tutorial on adding custom distributions to JAGS (with a diffusion model example)"
volume: 46
year: 2014