Usage
## Sampler function:
JAGS(x, y, family, start = NULL,
tdir = NULL, n.chains = 1, n.adapt = 100,
n.iter = 4000, thin = 2, burnin = 1000,
seed = NULL, verbose = TRUE, set.inits = TRUE,
save.all = FALSE, modules = NULL, ...)## Function to interpret an additive predictor into BUGS code:
BUGSeta(x, id = NULL, ...)
## Function to interpret the full BAMLSS:
BUGSmodel(x, family, is.stan = FALSE, reference = NULL, ...)
Arguments
x
For function JAGS()
and BUGSmodel()
the x
list, as returned from
function bamlss.frame
, holding all model matrices and other information that is
used for fitting the model. For function BUGSeta()
argument x
is one element of
the x
object, i.e., one parameter. start
A named numeric vector containing possible starting values, the names are based on
function parameters
. tdir
The path to the temporary directory that should be used.
n.chains
Specifies the number of sequential MCMC chains that should be run with JAGS.
n.adapt
Specifies the number of iterations that should be used as an initial adaptive phase.
n.iter
Sets the number of MCMC iterations.
thin
Defines the thinning parameter for MCMC simulation. E.g., thin = 10
means,
that only every 10th sampled parameter will be stored.
burnin
Sets the burn-in phase of the sampler, i.e., the number of starting samples that
should be removed.
verbose
Print information during runtime of the algorithm.
set.inits
Should initial values of BAMLSS parameters
be provided to JAGS,
if available. Set in argument start
. save.all
Should all JAGS files be saved in tdir
.
modules
Specify additional modules that should be loaded, see function load.module
. id
Character, the current parameter name for which the BUGS code should be produced.
is.stan
Should the BUGS code be translated to STAN code. Note that this is only experimental.
reference
A character
specifying a reference category, e.g., when
fitting a multinomial model.