Inspect or change package-level defaults used by RoBMA.
Value
RoBMA.options() invisibly returns a named list with all current
options after applying any changes. RoBMA.get_option() returns the current
value of the requested option.
Details
The available options are:
max_coresnumber of cores to use for parallel computing (default is one fewer than detected logical cores, with a minimum/fallback of 1)
native_threadsmaximum number of native threads used to evaluate independent posterior rows of the compiled selection-likelihood batches in post-processing such as likelihood-aware densities, z-plots, and predictions. The default
NAinherits the model's fitting setup: models fitted withparallel = TRUEevaluate their post-processing rows with up tomax_coresnative threads, unless this option sets an explicit thread count. Parallel work is arranged so that every reduction sums in a fixed order, so results do not depend on the thread count; single-state fitting and bridge-sampling evaluations stay serial. A model fitted withparallel = FALSEdoes its post-processing serially unless this option sets an explicit thread count.check_scalingwhether to check scaling of predictors (default
TRUE)silentwhether to suppress JAGS output when fitting or extending models (default
FALSE); the model-averaging constructorsRoBMA(),BMA(),BMA.norm(),BMA.glmm(),RoBMA.mv(), andBMA.mv()default tosilent = TRUEand ignore the optionjags.worker_outputfile path for parallel JAGS worker stdout and stderr when fitting or extending. The parent directory must exist; workers append to the same file and messages may interleave. The default empty string disables capture. Set this option inside any background job that fits the model. It does not change sampling or numerical integration settings.
autocompute.loowhether to automatically compute LOO (default
FALSE); a GLMM whose nuisance-prior likelihood the quadrature cannot certify warns and the fit is returned without itautocompute.waicwhether to automatically compute WAIC (default
FALSE); a GLMM whose nuisance-prior likelihood the quadrature cannot certify warns and the fit is returned without itautocompute.marglikwhether to automatically compute marginal likelihood (default
FALSE)cluster_likelihood.n_gammanumber of Gauss-Hermite nodes formerly used for weighted normal cluster-unit log-likelihoods (default
15). Normal cluster-unit log-likelihoods, weighted or not, are now integrated in closed form, so the option is still accepted but no longer affects them; selected-normal likelihoods use their own quadrature schedules and integration controls.selection.cache_max_bytesone shared storage budget for exact and coarse selection-normalizer caches across all chains in a fit. The default
"auto"uses the smaller of 4 GiB and one quarter of currently available system RAM, resolved before fitting. Supply a nonnegative whole number of bytes to set an explicit total;0disables caching. Storage grows as needed. Chains receive equal shares, pooled within each worker process; sequential chains share the total.selection.cache_retainwhether to save selection-normalizer cache entries with the fitted object after fitting or extending (default
FALSE). Retained entries survivesaveRDS()and are restored when extending a compatible fit. Seeremove_selection_cachefor memory costs and removal.selection.sampler"default"retains ordinary JAGS sampling."coarse_corrected"uses coarse slice proposals with a full-target Metropolis correction for eligible scalar updates involving multivariate, cluster or factor step selection blocks (seeselection_sampler_infofor the blocks that take part). The posterior target is unchanged. Settings are captured when each model is compiled.selection.coarse_gridnamed nonnegative grid steps
c(mean = .05, variance = .05, log_weight = .01)of the dense multivariate step blocks; cluster and factor blocks evaluate their coarse rule at the actual parameters and ignore the grid. Mean spacing is its step times the largest original sampling SE in the block; covariance-diagonal spacing is its step times that SE squared. Each diagonal is rounded upward on a grid whose origin is its own squared original sampling SE, retaining all off-diagonal entries. Positive weights are rounded on the natural-log scale; zero weights remain zero. A zero step retains that coordinate exactly but does not disable the coarse rule budget or fallback. These settings affect proposals, not the corrected target.selection.coarse_max_rulescoarse quadrature rule budget (default
3, minimum3). Dense multivariate blocks try at most this many rules from the beginning of the fitted quadrature schedule for a coarse anchor; unsupported or unsuccessful coarse integration uses the prescribed unit normalizer, without QMC fallback. Cluster and factor blocks use the one rule of this number in their own schedule (the last rule of a shorter schedule) at the actual parameters, and the exact density where that rule is unavailable. The full-target evaluator retains its ordinary numerical controls and diagnostics.default_UISD.effectdefault scaling of the unit information standard deviation for the effect size parameter (default
0.5)default_UISD.heterogeneitydefault scaling of the unit information standard deviation for the heterogeneity parameter (default
0.25)default_UISD.modsdefault scaling of the unit information standard deviation for the moderators (default
0.25)default_UISD.scaledefault scaling of the unit information standard deviation for the scale parameter (default
0.5)default_lograte.sddefault standard deviation of the estimate-specific midpoint log-rate prior in Poisson GLMMs (default
1)default_informed_priors.modsdefault scaling of informed priors for moderators (default
0.5)default_informed_priors.scaledefault scaling of informed priors for the scale parameter (default
0.5)default_bias_weightfunction.alphadefault alpha for the weightfunction (default
1)default_bias_PET.scaledefault scale for the PET (default
1)default_bias_PEESE.scaledefault scale for the PEESE (default
5)
Boolean options require scalar TRUE or FALSE values.
max_cores must be integer-like and at least 1;
cluster_likelihood.n_gamma must be integer-like and at least 3.
native_threads accepts NA or a positive integer.
Scale and alpha defaults must be finite positive numbers.