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

An R package to conveniently run JAGS in parallel from R

License

Notifications You must be signed in to change notification settings

michaelmalick/r-jagstools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An R package to conveniently run JAGS in parallel from R

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages