I am trying to fit the model below using rjags but I get a dimension mismatch error. The model runs well in WinBUGS and I can't figure out how to change the code. Thanks in advance for any help.
Data:
dataset <- list(n1 = 462, n2 = 537,
…
I am using the R2Jags package and I want to use the jags.parallel function to speed up computations. I use the following code:
jags.data <- list("y", "N")
n.chains = 3
n.burnin=5000
n.thin=1
n.iter=10000
mod_ss =…
I am running a for loop in R (as part of a power analysis for a model I ran with R2jags). At some point I want to know if my MCMC chains have converged, if not I want to skip that iteration of the loop. However, I don't want to skip to the next…
I am using the R2Jags package.
I first obtain the model as follows:
jags.data = list("Y"=y, "N"=N, Y1=y[1], C=x1)
# The parameters that we are monitoring (must monitor at least 1)
jags.params=c("sd.q","sd.r","Y", "X1",…
I'm running the following model where I got a measurement for each polling week. Which produce more than 100 alpha vectors for each party. May question is, how could I stockpile them in a way I could draw a line graph?
model{
## measurement
…