The rjags tag has no wiki summary.
0
votes
1answer
45 views
Simulated single value based on multiple chains in RJAGS
I am using RJAGS to simulate the posterior distribution of event that a certain candidate will win the presidential election. I need to find the actual percentage that one of the candidates will have. ...
3
votes
0answers
88 views
R2jags does not remove the burn in part sometimes?
I found out that the function jags() in the R2jags package sometimes does not remove the burn in part even with the option ...
0
votes
0answers
79 views
Rjags Error: Adaptation incomplete
I am running bivariate probit model under the Bayesian approach. For your convenience I have attached my R codes. I have three random effects, Ur, ...
1
vote
0answers
101 views
How to define CDF of bivariate normal distribution in rjags?
I am trying to define my own likelihood in rjags. I want to define the CDF of bivariate normal distribution under rjags. Does anyone know how to define the CDf of bivariate normal in rjags?
1
vote
0answers
110 views
JAGS - problem with taking submatrices
I'm trying to use JAGS for clustering mixtures of multivariate normal distributions. In order to model different covariance structures in each cluster I wanted to use one big (C*D)xD matrix (C - ...
1
vote
2answers
191 views
0
votes
1answer
386 views
jags missing data error
I am estimating a probit in jags on a time series cross sectional data set (country years) with 5 covariates, 4 of which are lagged, so the first observation for each country will be missing on those ...
0
votes
0answers
161 views
Generating and analyzing predicted data in JAGS
I am trying to model a logistic regression on data predicted from the results of a previous logistic regression, and am having trouble figuring out how to do it, either in OpenBUGS (BRugs) or JAGS ...
2
votes
0answers
140 views
How to sample from the prior predictive distribution in jags?
Is there an example available of how I can sample from the prior predictive distribution (without data) in jags? I would like to get a better sense for the contribution of the prior in a multilevel ...
8
votes
1answer
299 views
How to generate predictions with rjags?
I've used rjags to run MCMC on a model, specified in the JAGS language. Is there a good way to extract that model and perform predictions with it (using the posterior distributions of my parameters)? ...
2
votes
0answers
697 views
JAGS: unobserved parents and intialization
I have a very simple multinomial logistic regression problem; it's a simplified version of the alligator lake/food/size BUGS example. In my case I have (effectively) lake/food and have just stripped ...
2
votes
1answer
258 views
Bayesian mixed model regression with a between subjects factor
I'm trying to specify a model in JAGS/rjags with one between subjects factor (a, with two levels - Y, N) interacting with one repeated measures continuous variable x plus subject varying slopes and ...
1
vote
1answer
281 views
How to combine step(x) and dbern(p) in JAGS/WinBUGS?
The problem involves trying to characterize the probability:
P.f = Pd*Pr{t1 < t2}
using jags or WinBUGS. The issue is the last term where both t1 and t2 are ...
1
vote
1answer
159 views
Data and model blocks in JAGS
I am trying to model a function of observed data in JAGS. For example
x[i,t]/phi ~ dpois(mu)
where x is observed and phi is a parameter in the model. I can't ...
2
votes
1answer
1k views
2
votes
2answers
398 views
How to run JAGS as fast as possible on Mac?
I am running lots of simulations in JAGS 3.1.0 , which I have compiled from source. I am using a mid-2009 Macbook Pro 13 2.53GHz.
Is there any step by step tutorial (from scratch) to compile ATLAS or ...
5
votes
1answer
284 views
How does dinterval() for interval censored data work in JAGS?
I am trying to understand how dinterval() works in JAGS for censored data. I am modeling coarse data where I only have upper and lower bounds for each data point (not the true value). Here is a ...
9
votes
1answer
308 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 ...