Questions tagged [runjags]

runjags: Interface Utilities, Model Templates, Parallel Computing Methods and Additional Distributions for MCMC Models in JAGS

User-friendly interface utilities for MCMC models via Just Another Gibbs Sampler (JAGS), facilitating the use of parallel (or distributed) processors for multiple chains, automated control of convergence and sample length diagnostics, and evaluation of the performance of a model using drop-k validation or against simulated data. Template model specifications can be generated using a standard lme4-style formula interface to assist users less familiar with the BUGS syntax. A JAGS extension module provides additional distributions including the Pareto family of distributions, the DuMouchel prior and the half-Cauchy prior.

51 questions
0
votes
1 answer

runjags trouble locating JAGS - error "'where' not found" even after setting jagspath

Seems that runjags suddenly (after update to version 2.0.3-2) has trouble finding JAGS binary, issuing an error: [1] "Error in system(\"where jags\", intern = TRUE) : 'where' not found\n" attr(,"class") [1]…
Tomas
  • 57,621
  • 49
  • 238
  • 373
0
votes
1 answer

run.jags search environment for data

I'm getting some counterintuitive behavior from run.jags() in any model with a data block and a data= argument. It appears to be using the data argument to run.jags for the actual model, but searching the environment for anything used in the data…
0
votes
1 answer

Plotting specific variable in runjags output

When plotting runjags output, how does one plot a single specific variable, when many other variables have similar names? Providing a quoted variable name with the varsargument doesn't seem to do it (it still provides all partial matches). Here is a…
0
votes
1 answer

runjags summaries in Linux

I set summarise = TRUE in the function run.jags, then saved the output object as save(out, file="out.RData"). When I later load this object I can retrieve the summaries, plots, etc. However, when I use the exact same code and run the model, and save…
0
votes
2 answers

Can I tell JAGS to re-start automatically after failure with initial values?

My model failed with the following error: Compiling rjags model... Error: The following error occured when compiling and adapting the model using rjags: Error in rjags::jags.model(model, data = dataenv, inits = inits, n.chains =…
Tomas
  • 57,621
  • 49
  • 238
  • 373
0
votes
1 answer

Too low psrf values in runjags summary?

Runjags is reporting very low psrf = 1.0047 for a chain that apparently has convergence problems: > print(o, vars = "q_date2") JAGS model summary statistics from 3000 samples (chains = 3; adapt+burnin = 1000): Lower95 Median Upper95 …
Tomas
  • 57,621
  • 49
  • 238
  • 373
1 2 3
4