Extends an existing fitted brma object by additional MCMC samples,
updates study labels, and optionally recomputes cached fit-dependent
quantities.
# S3 method for brma
update(
object,
formula. = NULL,
...,
sample_extend = NULL,
slab = NULL,
autofit_control = NULL,
convergence_checks = NULL,
recompute = c("all", "drop"),
parallel = NULL,
cores = NULL,
silent = NULL,
seed = NULL,
evaluate = TRUE
)The updated brma object.
a fitted brma object.
unsupported; included for compatibility with
update.
unsupported additional arguments.
integer. Number of additional samples per chain.
optional character vector of study labels. Updating labels does not refit or extend the model.
list of autofit control settings. Values are merged with the existing settings before extending.
list of convergence check settings. Values are merged with the existing settings and used to re-check the fit.
whether cached loo, waic, and
marglik values already stored in object should be recomputed
after extension ("all") or dropped with a warning ("drop").
logical. Whether to extend chains in parallel.
integer. Number of cores to use when parallel = TRUE.
logical. Whether to suppress JAGS output during extension.
optional seed used before extending.
unsupported; included for compatibility with
update.
Extending a fit adds posterior samples only. It does not rerun adaptation or burn-in. Prior, data, and model-structure updates are intentionally not supported by this method.
if (FALSE) {
fit <- update(fit, sample_extend = 1000)
fit <- update(fit, slab = paste("Study", seq_len(nobs(fit))))
}
Run the code above in your browser using DataLab