Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (19 loc) · 938 Bytes

readme.md

File metadata and controls

27 lines (19 loc) · 938 Bytes

jagstools

An R package to conveniently run JAGS in parallel from R

Overview

jagstools consists of one main function, jags_sample that is a wrapper for functions in the rjags package that makes it easier to sample MCMC chains using parallel processing. Parallel processing is conducted by the parLapply function in the parallel package. Unlike other packages that have similar functionality (e.g., R2jags and runjags) jags_sample returns an mcmc.list object that is easily manipulated using the coda package, rather than defining a new class. Because of this, in its current state, models fit using jags_sample cannot be updated later by running the sampler longer.

Installation

The jagstools package is not on CRAN, but can be installed from R using:

install.packages("devtools")
library(devtools)
install_github(repo = "michaelmalick/r-jagstools")
library(jagstools)

License

MIT