| update.brma | R Documentation |
Extends an existing fitted brma object by additional MCMC samples,
updates study labels, and optionally recomputes cached fit-dependent
quantities.
## S3 method for class '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
)
object |
a fitted |
formula. |
unsupported; included for compatibility with
|
... |
unsupported additional arguments. |
sample_extend |
integer. Number of additional samples per chain. |
slab |
optional character vector of study labels. Updating labels does not refit or extend the model. |
autofit_control |
list of autofit control settings. Values are merged with the existing settings before extending. |
convergence_checks |
list of convergence check settings. Values are merged with the existing settings and used to re-check the fit. |
recompute |
whether cached |
parallel |
logical. Whether to extend chains in parallel. |
cores |
integer. Number of cores to use when |
silent |
logical. Whether to suppress JAGS output during extension. |
seed |
optional seed used before extending. |
evaluate |
unsupported; included for compatibility with
|
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.
The updated brma object.
## Not run:
fit <- update(fit, sample_extend = 1000)
fit <- update(fit, slab = paste("Study", seq_len(nobs(fit))))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.