talira

Just Another Gibbs Sampler: MCMC for Bayesian hierarchical models

open sourceGPL-2.0-onlyfree

JAGS (Just Another Gibbs Sampler) is a program for analysing Bayesian hierarchical models with Markov chain Monte Carlo simulation, much like BUGS. It was written as a cross-platform engine for the BUGS modelling language, to be extensible with user-written functions, distributions and samplers, and as a platform for experimenting with Bayesian modelling. Its author, Martyn Plummer, also maintains rjags, the R interface on CRAN.

Ways to install

Problems it solves

  • fit a Bayesian hierarchical model with Gibbs sampling
  • run BUGS models on Linux or macOS
  • Bayesian MCMC from R with a BUGS-style model

Features

  • MCMC (Gibbs sampling) for Bayesian hierarchical models
  • BUGS modelling language
  • extensible with custom functions, distributions and samplers
  • rjags R interface

Alternatives

The same job

These do what JAGS does.

  1. Stan Probabilistic programming language for Bayesian statistical modelling
  2. CmdStan Command-line interface to Stan for compiling and running Bayesian models
  3. RStan R interface to Stan, for Bayesian inference

Compare JAGS with the top 3