We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [jags]

"JAGS is Just Another Gibbs Sampler. It is a program for analysis of Bayesian hierarchical models using Markov Chain Monte Carlo (MCMC) simulation not wholly unlike BUGS." (http://mcmc-jags.sourceforge.net/)

Filter by
Sorted by
Tagged with
12
votes
2answers
579 views

MCMC converging to a single value?

I'm trying to fit a hierarchical model using jags, and the rjags package. My outcome variable is y, which is a sequence of bernoulli trials. I have 38 human subjects which are performing under two ...
5
votes
2answers
5k views

Debugging JAGS and BUGS [closed]

I'm working on a not-too-fancy Bayesian model in R and JAGS. The goal is to isolate coder errors in a content analysis task. Code and output are given below. The larger question is how to go about ...
41
votes
4answers
7k views

OpenBugs vs. JAGS

I am about to try out a BUGS style environment for estimating Bayesian models. Are there any important advantages to consider in choosing between OpenBugs or JAGS? Is one likely to replace the other ...
4
votes
1answer
1k views

Jags error with dgamma

I am trying to sample from a Gamma distribution in JAGS gd[i] ~ dgamma(k,r) where k and r are have priors such that they are positive. However I get the ...
3
votes
1answer
4k views

JAGS: posterior predictive distribution

I am fitting a simple linear regression model with R & JAGS: ...
10
votes
2answers
5k views

Censoring/Truncation in JAGS

I have a question on how to fit a censoring problem in JAGS. I observe a bivariate mixture normal where the X values have measurement error. I would like to model the true underlying 'means' of the ...
31
votes
1answer
6k views

For which distributions are the parameterizations in BUGS and R different?

I have found some distributions for which BUGS and R have different parameterizations: Normal, log-Normal, and Weibull. For each of these, I gather that the second parameter used by R needs to be ...