Skip to contents

Create a JAGS inits suitable for use with run.jags and autorun.jags

Usage

.createPoissonInit(
  gammaShape = c(shape = 1, scale = 10),
  gammaScale = c(shape = 1, scale = 10),
  seed = NULL,
  quantiles = NULL,
  rng = c("base::Mersenne-Twister", "base::Wichmann-Hill", "base::Marsaglia-Multicarry",
    "base::Super-Duper"),
  n = 1
)

Arguments

gammaShape

a named vector defining the shape and scale parameters of the gamma hyperprior for the shape parameter

gammaScale

a named vector defining the shape and scale parameters of the gamma hyperprior for the scale parameter

seed

the seed to use when generating random seeds for the MCMC processes

quantiles

Default NULL. If NULL, starting values of a and b are chosen at random. Otherwise, starting values are defined by the values supplied in quantiles. See Usage Notes below.

rng

the random number generator to be used for each init

n

the length of the initialisation vector for lambda