2013
DOI: 10.3758/s13428-013-0369-3
|View full text |Cite
|
Sign up to set email alerts
|

Extending JAGS: A tutorial on adding custom distributions to JAGS (with a diffusion model example)

Abstract: We demonstrate how to add a custom distribution into the general-purpose, open-source, cross-platform graphical modeling package JAGS ("Just Another Gibbs Sampler"). JAGS is intended to be modular and extensible, and modules written in the way laid out here can be loaded at runtime as needed and do not interfere with regular JAGS functionality when not loaded. Writing custom extensions requires knowledge of C++, but installing a new module can be highly automatic, depending on the operating system. As a basic … Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

0
146
0

Year Published

2016
2016
2022
2022

Publication Types

Select...
6
1
1
1

Relationship

0
9

Authors

Journals

citations
Cited by 124 publications
(152 citation statements)
references
References 12 publications
0
146
0
Order By: Relevance
“…For example, one must choose a method for estimating parameters from data. Though Frequentist approaches, such as chi-square (Ratcliff & Tuerlinckx, 2002), maximum-likelihood Vandekerckhove & Tuerlinckx, 2007), or Kolmogorov-Smirnov (Voss & Voss, 2007) are and remain commonplace, Bayesian methods are becoming increasingly popular (Vandekerckhove, Tuerlinckx, & Lee, 2011;Wabersich & Vandekerckhove, 2014;Wiecki, Sofer, & Frank, 2013). Beyond estimation, there still also remains a choice over how statistical inference will be performed.…”
Section: Threats To the Validity Of Cognitive Modelsmentioning
confidence: 99%
“…For example, one must choose a method for estimating parameters from data. Though Frequentist approaches, such as chi-square (Ratcliff & Tuerlinckx, 2002), maximum-likelihood Vandekerckhove & Tuerlinckx, 2007), or Kolmogorov-Smirnov (Voss & Voss, 2007) are and remain commonplace, Bayesian methods are becoming increasingly popular (Vandekerckhove, Tuerlinckx, & Lee, 2011;Wabersich & Vandekerckhove, 2014;Wiecki, Sofer, & Frank, 2013). Beyond estimation, there still also remains a choice over how statistical inference will be performed.…”
Section: Threats To the Validity Of Cognitive Modelsmentioning
confidence: 99%
“…It can be used either for fitting a hierarchical model or for fitting parameters for each individual subject. Recently, another platform-independent software option was introduced by Wabersich and Vandekerckhove (2014).…”
Section: Estimation Programsmentioning
confidence: 99%
“…A very useful tutorial on writing and installing a standalone JAGS module is provided by Wabersich and Vandekerckhove (2014), but it is arguably more straightforward to implement a shared JAGS library inside an R package. The configure script provided inside the runjags package sets up the necessary environmental variables for compilation on any platform, and can be used as a template for creating additional extension modules within R packages.…”
Section: Discussionmentioning
confidence: 99%
“…Although writing MCMC sampling algorithms such as the Metropolis-Hastings algorithm (Hastings 1970) is relatively straightforward, many users employ software such as the Bayesian analysis Using Gibbs Sampling (BUGS) software variants WinBUGS and OpenBUGS (Lunn, Thomas, Best, and Spiegelhalter 2000). Just Another Gibbs Sampler (JAGS; Plummer 2003) is a cross-platform alternative with a direct interface to R using rjags (Plummer 2016), which can be easily extended with user-specified modules supporting additional distributions and random number generators (Wabersich and Vandekerckhove 2014). Each of these uses the BUGS syntax to allow the user to define arbitrary models more easily, which is attractive and attainable for researchers who are more familiar with traditional modeling techniques.…”
Section: Introductionmentioning
confidence: 99%