Create a JAGS backend using rjags

SBC_backend_rjags(
  file,
  n.iter,
  n.burnin,
  variable.names,
  thin = 1,
  na.rm = TRUE,
  ...
)

Arguments

file

model file or connection to model code (passed to rjags::jags.model())

n.iter

number of iterations for sampling (passed to [rjags::coda.samples())

n.burnin

number of iterations used for burnin

variable.names

names of variables to monitor (passed to rjags::coda.samples())

thin

thinning (passed to rjags::coda.samples())

na.rm

whether to omit variables containing NA (passed to rjags::coda.samples())

...

additional optional arguments passed to rjags::jags.model()

  • most notably n.chains, n.adapt and inits.