This method allows to update an existing brmsfit_multiple object.

# S3 method for class 'brmsfit_multiple'
update(object, formula., newdata = NULL, data2 = NULL, ...)

Arguments

object

An object of class brmsfit_multiple.

formula.

Changes to the formula; for details see update.formula and brmsformula.

newdata

List of data.frames to update the model with new data. Currently required even if the original data should be used.

data2

A list of named lists each of which will be used to fit a separate model. Each of the named lists contains objects representing data which cannot be passed via argument data (see brm for examples). The length of the outer list should match the length of the list passed to the data argument. Currently required even if the original data should be used.

...

Other arguments passed to update.brmsfit and brm_multiple.

Examples

if (FALSE) { # \dontrun{
library(mice)
imp <- mice(nhanes2)

# initially fit the model
fit_imp1 <- brm_multiple(bmi ~ age + hyp + chl, data = imp, chains = 1)
summary(fit_imp1)

# update the model using fewer predictors
fit_imp2 <- update(fit_imp1, formula. = . ~ hyp + chl, newdata = imp)
summary(fit_imp2)
} # }