update.brmsfit_multiple | R Documentation |
This method allows to update an existing brmsfit_multiple
object.
## S3 method for class 'brmsfit_multiple'
update(object, formula., newdata = NULL, ...)
object |
An object of class |
formula. |
Changes to the formula; for details see
|
newdata |
List of |
... |
Other arguments passed to |
## Not run:
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.