The brma family of functions uses the following arguments to specify the
MCMC sampling and fitting settings.
Arguments
- sample
numeric. Number of MCMC samples to save per chain; each chain runs
sample * thinsampling iterations. Defaults to5000.- burnin
numeric. Length of burn-in in samples per chain at the thinning
thin, likesample: each chain runsburnin * thinburn-in iterations. Defaults to2000. With at least two chains, the chains are checked for agreement over the lastmin(burnin_extend, burnin)samples of burn-in, taken everythiniterations (at least 100 samples), before sampling starts, and withautofitburn-in is extended until they agree (seeburnin_max_Rhatinset_autofit_control()for when the check runs). Withburninbelow 100 the check does not run, and withburninat mostburnin_extendit checks the whole burn-in. The fitted JAGS object (object$fit$burnin) reports the burn-in that was run, in samples; the fitting settings (object$fit_control$burnin) keep the requested value.- adapt
numeric. Length of the adaptation phase in samples per chain at the thinning
thin: where a sampler adapts, each chain runsadapt * thinadaptation iterations. Defaults to500.- chains
numeric. Number of MCMC chains. Defaults to
3.- thin
numeric. Thinning interval: one sample is retained every
thiniterations. Defaults to1.adapt,burninandsamplecount samples at this thinning, so a fit requests(adapt + burnin + sample) * thiniterations per chain before any automatic extensions of burn-in or sampling (without the adaptation iterations when no sampler adapts); seethininBayesTools::JAGS_fit()for the largest settings.- parallel
logical. Whether to run MCMC chains in parallel. Defaults to
FALSE.- autofit
logical. Whether to automatically extend the MCMC chains if convergence is not met. Defaults to
FALSE.- autofit_control
list of autofit control settings. See
set_autofit_control()for details.- convergence_checks
list of convergence check settings. See
set_convergence_checks()for details.- seed
numeric. Random seed for reproducibility. Defaults to
NULL.- silent
logical. Whether to suppress fitting progress and some diagnostic warnings. Defaults to
RoBMA.get_option("silent").- ...
additional advanced arguments. Fitting functions reject unused arguments; currently recognized internal arguments include
only_data,only_priors,is_JASP, andis_JASP_prefix.